diff --git a/charts/ace/templates/cache/cache-config.yaml b/charts/ace/templates/cache/cache-config.yaml new file mode 100644 index 000000000..6d81b1988 --- /dev/null +++ b/charts/ace/templates/cache/cache-config.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Secret +metadata: + name: {{ include "ace.fullname" . }}-cache-config + namespace: {{ .Release.Namespace }} + labels: + {{- include "ace.offshootLabels" . | nindent 4 }} + app.kubernetes.io/component: database + app.kubernetes.io/instance: {{ include "ace.fullname" . }}-cache + app.kubernetes.io/managed-by: kubedb.com + app.kubernetes.io/name: redises.kubedb.com +type: Opaque +stringData: + redis.conf: | + appendonly no diff --git a/charts/ace/templates/cache/cache.yaml b/charts/ace/templates/cache/cache.yaml index 5da4165ee..10cbdb2bb 100644 --- a/charts/ace/templates/cache/cache.yaml +++ b/charts/ace/templates/cache/cache.yaml @@ -50,6 +50,8 @@ spec: runAsGroup: {{ .Values.securityContext.runAsUser }} {{- end }} deletionPolicy: {{ .Values.settings.cache.deletionPolicy }} + configuration: + secretName: {{ include "ace.fullname" . }}-cache-config authSecret: name: {{ include "ace.fullname" . }}-cache-auth externallyManaged: true