summaryrefslogtreecommitdiffstats
path: root/kubernetes/common
diff options
context:
space:
mode:
authormilaszki <daniel.milaszkiewicz@nokia.com>2020-07-07 12:31:21 +0000
committermilaszki <daniel.milaszkiewicz@nokia.com>2020-07-07 12:31:21 +0000
commit305089ce54bf5ff1c77a6f7da98149203dbbfb4a (patch)
treead1f065b011a821a610a4714345e48c804b8be15 /kubernetes/common
parent88c4c3788d35af106d46ace89fabfb1efca1bca8 (diff)
Make COMMON/MONGO compatible with Kubernetes v1.17
Issue-ID: OOM-2483 Signed-off-by: Daniel Milaszkiewicz <daniel.milaszkiewicz@nokia.com> Change-Id: If96bd1c72aa571314fc8665d382252b531554146
Diffstat (limited to 'kubernetes/common')
-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: