X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=ric-aux%2F80-Auxiliary-Functions%2Fhelm%2Fportal%2Fcharts%2Fportal-mariadb%2Ftemplates%2Fdeployment.yaml;h=5003cb6f0cc0e28151aaf485b0588a539ffe31be;hb=refs%2Fchanges%2F34%2F1234%2F9;hp=f826c9c29746c49f36fb977f1c18ccb9235b1ef4;hpb=2df61c2fcf64b32ecf7f064ef9cbbe6b54a15bc0;p=it%2Fdep.git diff --git a/ric-aux/80-Auxiliary-Functions/helm/portal/charts/portal-mariadb/templates/deployment.yaml b/ric-aux/80-Auxiliary-Functions/helm/portal/charts/portal-mariadb/templates/deployment.yaml index f826c9c2..5003cb6f 100755 --- a/ric-aux/80-Auxiliary-Functions/helm/portal/charts/portal-mariadb/templates/deployment.yaml +++ b/ric-aux/80-Auxiliary-Functions/helm/portal/charts/portal-mariadb/templates/deployment.yaml @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "common.fullname" . }} @@ -25,6 +25,10 @@ metadata: heritage: {{ .Release.Service }} spec: replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app: {{ include "common.name" . }} + release: {{ .Release.Name }} template: metadata: labels: @@ -79,8 +83,8 @@ spec: {{ toYaml .Values.affinity | indent 10 }} {{- end }} volumes: - {{- if .Values.persistence.enabled }} - name: mariadb-data + {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ include "common.fullname" . }} {{- else }}