X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;h=09765125b15904340dba7d31758903a436ebb557;hb=e0f9e545f020276f022ead2f00e36457e6bfc36c;hp=bcc8dc95dca1f1a10be64280f243c91321417ae3;hpb=dbfb30d19fdbd134b5df8500db2d249cb126901f;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index bcc8dc9..0976512 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -49,10 +49,14 @@ spec: value: o2ims123 - name: POSTGRES_USER value: o2ims + - name: PGDATA + value: /var/lib/postgresql/data/pgdata command: ["/bin/bash", "/opt/postgres_start.sh"] volumeMounts: - name: scripts mountPath: /opt + - name: db-pv + mountPath: /var/lib/postgresql/data - name: redis image: redis:alpine ports: @@ -86,6 +90,9 @@ spec: mountPath: /configs/o2app.conf subPath: config.json readOnly: true + - name: smocacrt + mountPath: /configs/smoca.crt + subPath: config.json - name: watcher image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}" command: ["/bin/bash", "/opt/o2watcher_start.sh"] @@ -161,10 +168,7 @@ spec: mountPath: /configs/server.key subPath: config.json readOnly: true - - name: smocacrt - mountPath: /configs/smoca.crt - subPath: config.json - readOnly: true + {{- if .Values.o2dms.helm_cli_enable }} - name: helmcli image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}" ports: @@ -178,6 +182,7 @@ spec: volumeMounts: - name: scripts mountPath: /opt + {{- end }} volumes: - name: scripts configMap: @@ -196,4 +201,7 @@ spec: - configMap: name: {{ .Chart.Name }}-smocacrt name: smocacrt + - name: db-pv + persistentVolumeClaim: + claimName: {{ .Chart.Name }}-db-pv ---