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"]
67 {{- if .Values.db.persistence }}
69 mountPath: /var/lib/postgresql/data
72 image: "{{ .Values.o2ims.images.tags.redis }}"
76 image: "{{ .Values.o2ims.images.tags.o2service }}"
77 command: ["/bin/bash", "/opt/o2pubsub_start.sh"]
83 - name: LOGGING_CONFIG_LEVEL
84 value: {{ .Values.o2ims.logginglevel }}
86 value: {{ .Values.ocloud.OS_AUTH_URL }}
88 value: {{ .Values.ocloud.OS_PASSWORD }}
90 value: {{ .Values.ocloud.OS_USERNAME }}
91 - name: PYTHONDONTWRITEBYTECODE
95 - name: K8S_KUBECONFIG
96 value: {{ .Values.ocloud.K8S_KUBECONFIG }}
100 - name: applicationconfig
101 mountPath: /configs/o2app.conf
105 mountPath: /configs/smoca.crt
108 image: "{{ .Values.o2ims.images.tags.o2service }}"
109 command: ["/bin/bash", "/opt/o2watcher_start.sh"]
111 - name: API_HOST_EXTERNAL_FLOATING
112 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
117 - name: LOGGING_CONFIG_LEVEL
118 value: {{ .Values.o2ims.logginglevel }}
120 value: {{ .Values.ocloud.OS_AUTH_URL }}
122 value: {{ .Values.ocloud.OS_PASSWORD }}
124 value: {{ .Values.ocloud.OS_USERNAME }}
125 - name: PYTHONDONTWRITEBYTECODE
129 {{- if default false .Values.o2ims.useHostCert }}
130 - name: REQUESTS_CA_BUNDLE
131 value: /etc/ssl/custom-cert.pem
133 - name: CGTS_INSECURE_SSL
134 value: {{ ternary "1" "0" (default false .Values.o2ims.cgtsInsecureSSL) | quote }}
138 - name: applicationconfig
139 mountPath: /configs/o2app.conf
142 {{- if default false .Values.o2ims.useHostCert }}
144 mountPath: /etc/ssl/custom-cert.pem
148 image: "{{ .Values.o2ims.images.tags.o2service }}"
152 - name: API_HOST_EXTERNAL_FLOATING
153 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
159 # value: /src/o2app/entrypoints/flask_application.py
160 # - name: FLASK_DEBUG
161 # value: {{ .Values.o2ims.logginglevel }}
162 - name: LOGGING_CONFIG_LEVEL
163 value: {{ .Values.o2ims.logginglevel }}
167 - name: PYTHONDONTWRITEBYTECODE
169 - name: PYTHONUNBUFFERED
173 - name: HELM_USER_PASSWD
174 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
175 command: ["/bin/bash", "/opt/o2api_start.sh"]
179 {{- if .Values.o2dms.helm_cli_enable }}
183 - name: applicationconfig
184 mountPath: /configs/o2app.conf
188 mountPath: /configs/server.crt
192 mountPath: /configs/server.key
196 mountPath: /configs/smoca.crt
198 {{- if .Values.o2dms.helm_cli_enable }}
200 image: "{{ .Values.o2ims.images.tags.o2service }}"
204 - name: API_HOST_EXTERNAL_FLOATING
205 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
206 - name: HELM_USER_PASSWD
207 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
208 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
218 name: {{ .Chart.Name }}-scripts-configmap
219 {{- if .Values.o2dms.helm_cli_enable }}
224 name: {{ .Chart.Name }}-application-config
225 name: applicationconfig
227 name: {{ .Chart.Name }}-serverkey
230 name: {{ .Chart.Name }}-servercrt
233 name: {{ .Chart.Name }}-smocacrt
235 {{- if .Values.db.persistence }}
237 persistentVolumeClaim:
238 claimName: {{ .Chart.Name }}-db-pv
240 {{- if default false .Values.o2ims.useHostCert }}
243 path: {{ .Values.o2ims.hostCertPath | quote }}