summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates/statefulset.yaml
diff options
context:
space:
mode:
authorMike Elliott <mike.elliott@amdocs.com>2018-09-13 13:20:01 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-13 13:20:01 +0000
commita859647740e19b62c44244e256c48a8847900259 (patch)
treeda1176d7f7f609a3785bf333e8a8a6f54e3f3776 /kubernetes/common/mariadb-galera/templates/statefulset.yaml
parent62927a13cd4b1457d1ebfbd838a4cba145aa9c98 (diff)
parent47b1b82fdabe343c6c2b2d076e3b76d9ffee0314 (diff)
Merge "Upgrade APPC to use common mariadb galera charts"
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates/statefulset.yaml')
-rw-r--r--kubernetes/common/mariadb-galera/templates/statefulset.yaml14
1 files changed, 5 insertions, 9 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/statefulset.yaml b/kubernetes/common/mariadb-galera/templates/statefulset.yaml
index 5f96ee658e..20a03499bb 100644
--- a/kubernetes/common/mariadb-galera/templates/statefulset.yaml
+++ b/kubernetes/common/mariadb-galera/templates/statefulset.yaml
@@ -23,7 +23,7 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
spec:
- serviceName: {{ include "common.fullname" . }}
+ serviceName: {{ .Values.service.name }}
replicas: {{ .Values.replicaCount }}
template:
metadata:
@@ -48,7 +48,7 @@ spec:
imagePullSecrets:
- name: {{ include "common.namespace" . }}-docker-registry-key
containers:
- - name: {{ include "common.fullname" . }}
+ - name: {{ include "common.name" . }}
image: "{{ include "common.repository" . }}/{{ .Values.image }}"
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy | quote}}
env:
@@ -107,7 +107,6 @@ spec:
{{- if .Values.persistence.enabled }}
- mountPath: /var/lib/mysql
name: {{ include "common.fullname" . }}-data
- subPath: data
initContainers:
- name: mariadb-galera-prepare
image: "{{ include "common.repository" . }}/{{ .Values.imageInit }}"
@@ -118,15 +117,12 @@ spec:
volumeClaimTemplates:
- metadata:
name: {{ include "common.fullname" . }}-data
- annotations:
- {{- if .Values.persistence.storageClass }}
- volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
- {{- else }}
- volume.alpha.kubernetes.io/storage-class: default
- {{- end }}
+ labels:
+ name: {{ include "common.fullname" . }}
spec:
accessModes:
- {{ .Values.persistence.accessMode | quote }}
+ storageClassName: {{ include "common.fullname" . }}-data
resources:
requests:
storage: {{ .Values.persistence.size | quote }}