summaryrefslogtreecommitdiffstats
path: root/kubernetes/common/mariadb-galera/templates/statefulset.yaml
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-07-14 23:33:29 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-14 23:33:29 +0000
commita8ab56ee0cb347599c490018e17ad142c984b6a5 (patch)
tree0b5aa6f474090df18f270385551fe0ea3cd97eed /kubernetes/common/mariadb-galera/templates/statefulset.yaml
parentc7b1cb5f8f4f06a5d93eab188f564484fa7a8549 (diff)
parent804afe7cc6253cfc914c6a0f589a851443182481 (diff)
Merge "[COMMON] Make MariaDB compatible with Kubernetes v1.17"
Diffstat (limited to 'kubernetes/common/mariadb-galera/templates/statefulset.yaml')
-rw-r--r--kubernetes/common/mariadb-galera/templates/statefulset.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/common/mariadb-galera/templates/statefulset.yaml b/kubernetes/common/mariadb-galera/templates/statefulset.yaml
index 855d50e5ea..47d1e0ef3d 100644
--- a/kubernetes/common/mariadb-galera/templates/statefulset.yaml
+++ b/kubernetes/common/mariadb-galera/templates/statefulset.yaml
@@ -14,7 +14,7 @@
# limitations under the License.
*/}}
-apiVersion: apps/v1beta1
+apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ include "common.fullname" . }}
@@ -27,6 +27,9 @@ metadata:
spec:
serviceName: {{ .Values.service.name }}
replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ include "common.fullname" . }}
template:
metadata:
labels: