X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;h=4a108900e2b0b71435add3b8db49a019a459c351;hb=5893fa9d751d3e00324b22dfbdea024722ab9272;hp=a9ea8fd78154f40a9470a23e8dc13e5f4feda5ff;hpb=074ae58151b0fe8ed0d1bebf981c0826d3b5e622;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index a9ea8fd..4a10890 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -33,6 +33,8 @@ spec: serviceAccountName: {{ .Values.o2ims.serviceaccountname }} # imagePullSecrets: # - name: {{ .Values.o2ims.imagePullSecrets }} + imagePullSecrets: + - name: {{ .Values.o2ims.serviceaccountname }}-registry-secret {{- if .Values.o2ims.affinity }} affinity: {{ toYaml .Values.o2ims.affinity | indent 8 }} @@ -80,6 +82,13 @@ spec: volumeMounts: - name: scripts mountPath: /opt + - name: applicationconfig + 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"] @@ -105,6 +114,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: @@ -137,8 +150,20 @@ spec: volumeMounts: - name: scripts mountPath: /opt - - name: configs - mountPath: /configs + # - name: configs + # mountPath: /configs + - name: applicationconfig + mountPath: /configs/o2app.conf + subPath: config.json + readOnly: true + - name: servercrt + mountPath: /configs/server.crt + subPath: config.json + readOnly: true + - name: serverkey + mountPath: /configs/server.key + subPath: config.json + readOnly: true - name: helmcli image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}" ports: @@ -152,12 +177,22 @@ spec: volumeMounts: - name: scripts mountPath: /opt - - name: configs - mountPath: /configs volumes: - name: scripts configMap: name: {{ .Chart.Name }}-scripts-configmap - - name: configs - emptyDir: {} + # - name: configs + # emptyDir: {} + - configMap: + name: {{ .Chart.Name }}-application-config + name: applicationconfig + - configMap: + name: {{ .Chart.Name }}-serverkey + name: serverkey + - configMap: + name: {{ .Chart.Name }}-servercrt + name: servercrt + - configMap: + name: {{ .Chart.Name }}-smocacrt + name: smocacrt ---