summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2020-07-08 14:44:58 +0000
committerGerrit Code Review <gerrit@onap.org>2020-07-08 14:44:58 +0000
commitae24e1f93df345903556301bd5c75bda1aa9af69 (patch)
tree4066ea6aacbd7d12dae175c3a0fffa13de4a7953
parentced08d06bd570214cd3648b821e78eb0d02899da (diff)
parent305089ce54bf5ff1c77a6f7da98149203dbbfb4a (diff)
Merge "Make COMMON/MONGO compatible with Kubernetes v1.17"
-rw-r--r--kubernetes/common/mongo/templates/statefulset.yaml5
1 files changed, 4 insertions, 1 deletions
diff --git a/kubernetes/common/mongo/templates/statefulset.yaml b/kubernetes/common/mongo/templates/statefulset.yaml
index ae373343d3..111bc80586 100644
--- a/kubernetes/common/mongo/templates/statefulset.yaml
+++ b/kubernetes/common/mongo/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.name" . }}
template:
metadata:
labels: