aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates')
-rw-r--r--kubernetes/common/mariadb-galera/templates/configmap.yaml6
-rw-r--r--kubernetes/common/mariadb-galera/templates/statefulset.yaml5
2 files changed, 7 insertions, 4 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/configmap.yaml b/kubernetes/common/mariadb-galera/templates/configmap.yaml
index 54096cf5c0..4f99da1692 100644
--- a/kubernetes/common/mariadb-galera/templates/configmap.yaml
+++ b/kubernetes/common/mariadb-galera/templates/configmap.yaml
@@ -24,9 +24,9 @@ data:
apiVersion: v1
kind: ConfigMap
metadata:
- name: {{ include "common.fullname" . }}-externalConfig
+ name: {{ include "common.fullname" . }}-external-config
namespace: {{ include "common.namespace" . }}
data:
- my_extra.cnf: |-
-{{ toYaml .Values.externalConfig | indent 4 }}
+ my_extra.cnf: |
+{{ .Values.externalConfig | indent 4 }}
{{- end -}} \ No newline at end of file
diff --git a/kubernetes/common/mariadb-galera/templates/statefulset.yaml b/kubernetes/common/mariadb-galera/templates/statefulset.yaml
index d3bad4f5b6..7ca207f7e9 100644
--- a/kubernetes/common/mariadb-galera/templates/statefulset.yaml
+++ b/kubernetes/common/mariadb-galera/templates/statefulset.yaml
@@ -40,7 +40,7 @@ spec:
{{- if .Values.externalConfig }}
- name: config
configMap:
- name: {{ include "common.fullname" . }}-externalConfig
+ name: {{ include "common.fullname" . }}-external-config
{{- end}}
- name: localtime
hostPath:
@@ -126,4 +126,7 @@ spec:
resources:
requests:
storage: {{ .Values.persistence.size | quote }}
+ selector:
+ matchLabels:
+ name: {{ include "common.fullname" . }}
{{- end }}