1 # Copyright (C) 2021-2023 Wind River Systems, Inc.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
20 namespace: {{ .Values.global.namespace }}
32 {{- with .Values.podLabels }}
33 {{- toYaml . | nindent 8 }}
36 {{- with .Values.podAnnotations }}
37 {{- toYaml . | nindent 8 }}
40 serviceAccountName: {{ .Values.o2ims.serviceaccountname }}
41 {{- if .Values.imagePullSecrets }}
43 {{- range .Values.imagePullSecrets }}
47 {{- if .Values.o2ims.affinity }}
49 {{ toYaml .Values.o2ims.affinity | indent 8 }}
53 image: "{{ .Values.o2ims.images.tags.postgres }}"
57 - name: POSTGRES_PASSWORD
62 value: /var/lib/postgresql/data/pgdata
63 command: ["/bin/bash", "/opt/postgres_start.sh"]
68 mountPath: /var/lib/postgresql/data
70 image: "{{ .Values.o2ims.images.tags.redis }}"
74 image: "{{ .Values.o2ims.images.tags.o2service }}"
75 command: ["/bin/bash", "/opt/o2pubsub_start.sh"]
81 - name: LOGGING_CONFIG_LEVEL
82 value: {{ .Values.o2ims.logginglevel }}
84 value: {{ .Values.ocloud.OS_AUTH_URL }}
86 value: {{ .Values.ocloud.OS_PASSWORD }}
88 value: {{ .Values.ocloud.OS_USERNAME }}
89 - name: PYTHONDONTWRITEBYTECODE
93 - name: K8S_KUBECONFIG
94 value: {{ .Values.ocloud.K8S_KUBECONFIG }}
98 - name: applicationconfig
99 mountPath: /configs/o2app.conf
103 mountPath: /configs/smoca.crt
106 image: "{{ .Values.o2ims.images.tags.o2service }}"
107 command: ["/bin/bash", "/opt/o2watcher_start.sh"]
109 - name: API_HOST_EXTERNAL_FLOATING
110 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
115 - name: LOGGING_CONFIG_LEVEL
116 value: {{ .Values.o2ims.logginglevel }}
118 value: {{ .Values.ocloud.OS_AUTH_URL }}
120 value: {{ .Values.ocloud.OS_PASSWORD }}
122 value: {{ .Values.ocloud.OS_USERNAME }}
123 - name: PYTHONDONTWRITEBYTECODE
127 {{- if default false .Values.o2ims.useHostCert }}
128 - name: REQUESTS_CA_BUNDLE
129 value: /etc/ssl/custom-cert.pem
131 - name: CGTS_INSECURE_SSL
132 value: {{ ternary "1" "0" (default false .Values.o2ims.cgtsInsecureSSL) | quote }}
136 - name: applicationconfig
137 mountPath: /configs/o2app.conf
140 {{- if default false .Values.o2ims.useHostCert }}
142 mountPath: /etc/ssl/custom-cert.pem
146 image: "{{ .Values.o2ims.images.tags.o2service }}"
150 - name: API_HOST_EXTERNAL_FLOATING
151 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
157 # value: /src/o2app/entrypoints/flask_application.py
158 # - name: FLASK_DEBUG
159 # value: {{ .Values.o2ims.logginglevel }}
160 - name: LOGGING_CONFIG_LEVEL
161 value: {{ .Values.o2ims.logginglevel }}
165 - name: PYTHONDONTWRITEBYTECODE
167 - name: PYTHONUNBUFFERED
171 - name: HELM_USER_PASSWD
172 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
173 command: ["/bin/bash", "/opt/o2api_start.sh"]
177 {{- if .Values.o2dms.helm_cli_enable }}
181 - name: applicationconfig
182 mountPath: /configs/o2app.conf
186 mountPath: /configs/server.crt
190 mountPath: /configs/server.key
194 mountPath: /configs/smoca.crt
196 {{- if .Values.o2dms.helm_cli_enable }}
198 image: "{{ .Values.o2ims.images.tags.o2service }}"
202 - name: API_HOST_EXTERNAL_FLOATING
203 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
204 - name: HELM_USER_PASSWD
205 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
206 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
216 name: {{ .Chart.Name }}-scripts-configmap
217 {{- if .Values.o2dms.helm_cli_enable }}
222 name: {{ .Chart.Name }}-application-config
223 name: applicationconfig
225 name: {{ .Chart.Name }}-serverkey
228 name: {{ .Chart.Name }}-servercrt
231 name: {{ .Chart.Name }}-smocacrt
234 persistentVolumeClaim:
235 claimName: {{ .Chart.Name }}-db-pv
236 {{- if default false .Values.o2ims.useHostCert }}
239 path: {{ .Values.o2ims.hostCertPath | quote }}