X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=charts%2Ftemplates%2Fdeployment.yaml;h=a1e45822ffffb7f424a6213120e574f4df07c343;hb=29fa27bb53e2b4ff89f8ef61d0885df776bc14b1;hp=72e35800d3a1e12fb392032faac81eb64d01d294;hpb=c6b86dba7ff753b392c7bc74a28cd16f7c2fe82e;p=pti%2Fo2.git diff --git a/charts/templates/deployment.yaml b/charts/templates/deployment.yaml index 72e3580..a1e4582 100644 --- a/charts/templates/deployment.yaml +++ b/charts/templates/deployment.yaml @@ -124,6 +124,12 @@ spec: value: "1" - name: REDIS_HOST value: localhost + {{- if default false .Values.o2ims.useHostCert }} + - name: REQUESTS_CA_BUNDLE + value: /etc/ssl/custom-cert.pem + {{- end }} + - name: CGTS_INSECURE_SSL + value: {{ ternary "1" "0" (default false .Values.o2ims.cgtsInsecureSSL) | quote }} volumeMounts: - name: scripts mountPath: /opt @@ -131,6 +137,11 @@ spec: mountPath: /configs/o2app.conf subPath: config.json readOnly: true + {{- if default false .Values.o2ims.useHostCert }} + - name: ca-certs + mountPath: /etc/ssl/custom-cert.pem + readOnly: true + {{- end }} - name: o2api image: "{{ .Values.o2ims.images.tags.o2service }}" ports: @@ -219,4 +230,10 @@ spec: - name: db-pv persistentVolumeClaim: claimName: {{ .Chart.Name }}-db-pv + {{- if default false .Values.o2ims.useHostCert }} + - name: ca-certs + hostPath: + path: {{ .Values.o2ims.hostCertPath | quote }} + type: File + {{- end }} ---