Skip to content

Commit

Permalink
Merge pull request #2622 from jdgeisler/add-memcached-extstore
Browse files Browse the repository at this point in the history
[loki-distributed] Add support for additional PVCs in the memcached-chunks statefulset
  • Loading branch information
MasslessParticle authored Sep 1, 2023
2 parents a10a8a9 + a9587fb commit bd618de
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/loki-distributed/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: loki-distributed
description: Helm chart for Grafana Loki in microservices mode
type: application
appVersion: 2.8.4
version: 0.71.2
version: 0.72.0
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
4 changes: 3 additions & 1 deletion charts/loki-distributed/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# loki-distributed

![Version: 0.71.2](https://img.shields.io/badge/Version-0.71.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.4](https://img.shields.io/badge/AppVersion-2.8.4-informational?style=flat-square)
![Version: 0.72.0](https://img.shields.io/badge/Version-0.72.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.4](https://img.shields.io/badge/AppVersion-2.8.4-informational?style=flat-square)

Helm chart for Grafana Loki in microservices mode

Expand Down Expand Up @@ -343,6 +343,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA
| memcachedChunks.extraContainers | list | `[]` | Containers to add to the memcached-chunks pods |
| memcachedChunks.extraEnv | list | `[]` | Environment variables to add to memcached-chunks pods |
| memcachedChunks.extraEnvFrom | list | `[]` | Environment variables from secrets or configmaps to add to memcached-chunks pods |
| memcachedChunks.extraVolumeMounts | list | `[]` | List of additional volumes to be mounted for the memcached-chunks statefulset |
| memcachedChunks.hostAliases | list | `[]` | hostAliases to add |
| memcachedChunks.maxUnavailable | string | `nil` | Pod Disruption Budget maxUnavailable |
| memcachedChunks.nodeSelector | object | `{}` | Node selector for memcached-chunks pods |
Expand All @@ -357,6 +358,7 @@ kubectl delete statefulset RELEASE_NAME-loki-distributed-querier -n LOKI_NAMESPA
| memcachedChunks.serviceLabels | object | `{}` | Labels for memcached-chunks service |
| memcachedChunks.terminationGracePeriodSeconds | int | `30` | Grace period to allow memcached-chunks to shutdown before it is killed |
| memcachedChunks.tolerations | list | `[]` | Tolerations for memcached-chunks pods |
| memcachedChunks.volumeClaimTemplates | list | `[]` | List of additional PVCs to be created for the memcached-chunks statefulset |
| memcachedExporter.containerSecurityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true}` | The SecurityContext for memcachedExporter containers |
| memcachedExporter.enabled | bool | `false` | Specifies whether the Memcached Exporter should be enabled |
| memcachedExporter.image.pullPolicy | string | `"IfNotPresent"` | Memcached Exporter Docker image pull policy |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,16 @@ spec:
{{- toYaml .Values.memcached.readinessProbe | nindent 12 }}
livenessProbe:
{{- toYaml .Values.memcached.livenessProbe | nindent 12 }}
{{- if .Values.memcachedChunks.persistence.enabled }}
{{- if or .Values.memcachedChunks.persistence.enabled .Values.memcachedChunks.extraVolumeMounts }}
volumeMounts:
{{- if .Values.memcachedChunks.persistence.enabled }}
- name: data
mountPath: /cache-state
{{- end }}
{{- if .Values.memcachedChunks.extraVolumeMounts }}
{{- toYaml .Values.memcachedChunks.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- end }}
resources:
{{- toYaml .Values.memcachedChunks.resources | nindent 12 }}
{{- if .Values.memcachedExporter.enabled }}
Expand Down Expand Up @@ -133,8 +138,9 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.memcachedChunks.persistence.enabled }}
{{- if or .Values.memcachedChunks.persistence.enabled .Values.memcachedChunks.volumeClaimTemplates }}
volumeClaimTemplates:
{{- if .Values.memcachedChunks.persistence.enabled }}
- metadata:
name: data
spec:
Expand All @@ -147,4 +153,8 @@ spec:
requests:
storage: {{ .Values.memcachedChunks.persistence.size | quote }}
{{- end }}
{{- with .Values.memcachedChunks.volumeClaimTemplates }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions charts/loki-distributed/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1710,6 +1710,10 @@ memcachedChunks:
# If empty or set to null, no storageClassName spec is
# set, choosing the default provisioner (gp2 on AWS, standard on GKE, AWS, and OpenStack).
storageClass: null
# -- List of additional PVCs to be created for the memcached-chunks statefulset
volumeClaimTemplates: []
# -- List of additional volumes to be mounted for the memcached-chunks statefulset
extraVolumeMounts: []

memcachedFrontend:
# -- Specifies whether the Memcached frontend cache should be enabled
Expand Down

0 comments on commit bd618de

Please sign in to comment.