diff --git a/mariadb/templates/statefulset.yaml b/mariadb/templates/statefulset.yaml index c4cccf7a83..39f6dae221 100644 --- a/mariadb/templates/statefulset.yaml +++ b/mariadb/templates/statefulset.yaml @@ -38,7 +38,8 @@ spec: matchExpressions: - key: app operator: In - values: ["mariadb"] + values: + - {{ .Values.service_name }} topologyKey: kubernetes.io/hostname weight: 10 nodeSelector: