X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;h=194ca7e1976db95bd52c1baa63973116e9db9a1b;hb=12249c7669e487cd9f37cee8475c89eb5490e0f0;hp=d229f44a4761d030169e1ffc082f0aef67aa062a;hpb=7ef3ae01ee1011d3b39be5330c8e0899dbe95bd0;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index d229f44..194ca7e 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -31,8 +31,10 @@ spec: app: o2api spec: serviceAccountName: {{ .Values.o2ims.serviceaccountname }} + # imagePullSecrets: + # - name: {{ .Values.o2ims.imagePullSecrets }} imagePullSecrets: - - name: {{ .Values.o2ims.imagePullSecrets }} + - name: {{ .Values.o2ims.serviceaccountname }}-registry-secret {{- if .Values.o2ims.affinity }} affinity: {{ toYaml .Values.o2ims.affinity | indent 8 }} @@ -80,6 +82,10 @@ spec: volumeMounts: - name: scripts mountPath: /opt + - name: applicationconfig + mountPath: /configs/o2app.conf + subPath: config.json + readOnly: true - name: watcher image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}" command: ["/bin/bash", "/opt/o2watcher_start.sh"] @@ -105,6 +111,10 @@ spec: volumeMounts: - name: scripts mountPath: /opt + - name: applicationconfig + mountPath: /configs/o2app.conf + subPath: config.json + readOnly: true - name: o2api image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}" ports: @@ -117,7 +127,7 @@ spec: - name: DB_PASSWORD value: o2ims123 - name: FLASK_APP - value: /root/o2/o2app/entrypoints/flask_application.py + value: /src/o2app/entrypoints/flask_application.py - name: FLASK_DEBUG value: {{ .Values.o2ims.logginglevel }} - name: LOGGING_CONFIG_LEVEL @@ -137,8 +147,8 @@ spec: volumeMounts: - name: scripts mountPath: /opt - - name: configs - mountPath: /configs + # - name: configs + # mountPath: /configs - name: applicationconfig mountPath: /configs/o2app.conf subPath: config.json @@ -168,8 +178,8 @@ spec: - name: scripts configMap: name: {{ .Chart.Name }}-scripts-configmap - - name: configs - emptyDir: {} + # - name: configs + # emptyDir: {} - configMap: name: {{ .Chart.Name }}-application-config name: applicationconfig