summaryrefslogtreecommitdiffstats
path: root/deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml')
-rw-r--r--deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml b/deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml
index c79739f5..c234ce3e 100644
--- a/deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml
+++ b/deployments/helm/onap4k8s/charts/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,10 @@ metadata:
spec:
serviceName: {{ .Values.service.name }}
replicas: {{ .Values.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ include "common.name" . }}
+ release: {{ .Release.Name }}
template:
metadata:
labels: