diff options
author | 2020-06-01 02:12:39 +0000 | |
---|---|---|
committer | 2020-06-01 02:12:39 +0000 | |
commit | 7959bd4c6fd403cf4ba58bf572b1259267b3c76d (patch) | |
tree | e9fab6070d612a7c703d7eaf056f14818b466a20 /deployments/helm/onap4k8s/charts/mongo | |
parent | 1481548c635f95d245138aba7ac710668e25bfe1 (diff) | |
parent | 662f6d95a1461d05ad6605599f4f895b5a90f7a1 (diff) |
Merge "Update the Kubernetes Version to 1.16"
Diffstat (limited to 'deployments/helm/onap4k8s/charts/mongo')
-rw-r--r-- | deployments/helm/onap4k8s/charts/mongo/templates/nfs-provisoner.yaml | 6 | ||||
-rw-r--r-- | deployments/helm/onap4k8s/charts/mongo/templates/statefulset.yaml | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/deployments/helm/onap4k8s/charts/mongo/templates/nfs-provisoner.yaml b/deployments/helm/onap4k8s/charts/mongo/templates/nfs-provisoner.yaml index 355ad382..a69382e4 100644 --- a/deployments/helm/onap4k8s/charts/mongo/templates/nfs-provisoner.yaml +++ b/deployments/helm/onap4k8s/charts/mongo/templates/nfs-provisoner.yaml @@ -15,7 +15,7 @@ */}} {{ if not .Values.disableNfsProvisioner }} -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner @@ -26,6 +26,10 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: + selector: + matchLabels: + app: {{ .Values.nfsprovisionerPrefix }}-nfs-provisioner + release: {{ .Release.Name }} #replicas: {{ .Values.replicaCount }} strategy: type: Recreate 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: |