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: OS_REGION_NAME
126 value: {{ .Values.ocloud.OS_REGION_NAME }}
127 - name: PYTHONDONTWRITEBYTECODE
131 {{- if default false .Values.o2ims.useHostCert }}
132 - name: REQUESTS_CA_BUNDLE
133 value: /etc/ssl/custom-cert.pem
135 - name: CGTS_INSECURE_SSL
136 value: {{ ternary "1" "0" (default false .Values.o2ims.cgtsInsecureSSL) | quote }}
140 - name: applicationconfig
141 mountPath: /configs/o2app.conf
144 {{- if default false .Values.o2ims.useHostCert }}
146 mountPath: /etc/ssl/custom-cert.pem
150 image: "{{ .Values.o2ims.images.tags.o2service }}"
154 - name: API_HOST_EXTERNAL_FLOATING
155 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
161 # value: /src/o2app/entrypoints/flask_application.py
162 # - name: FLASK_DEBUG
163 # value: {{ .Values.o2ims.logginglevel }}
164 - name: LOGGING_CONFIG_LEVEL
165 value: {{ .Values.o2ims.logginglevel }}
169 - name: PYTHONDONTWRITEBYTECODE
171 - name: PYTHONUNBUFFERED
175 - name: HELM_USER_PASSWD
176 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
177 command: ["/bin/bash", "/opt/o2api_start.sh"]
181 {{- if .Values.o2dms.helm_cli_enable }}
185 - name: applicationconfig
186 mountPath: /configs/o2app.conf
190 mountPath: /configs/server.crt
194 mountPath: /configs/server.key
198 mountPath: /configs/smoca.crt
200 {{- if .Values.o2dms.helm_cli_enable }}
202 image: "{{ .Values.o2ims.images.tags.o2service }}"
206 - name: API_HOST_EXTERNAL_FLOATING
207 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
208 - name: HELM_USER_PASSWD
209 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
210 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
220 name: {{ .Chart.Name }}-scripts-configmap
221 {{- if .Values.o2dms.helm_cli_enable }}
226 name: {{ .Chart.Name }}-application-config
227 name: applicationconfig
229 name: {{ .Chart.Name }}-serverkey
232 name: {{ .Chart.Name }}-servercrt
235 name: {{ .Chart.Name }}-smocacrt
237 {{- if .Values.db.persistence }}
239 persistentVolumeClaim:
240 claimName: {{ .Chart.Name }}-db-pv
242 {{- if default false .Values.o2ims.useHostCert }}
245 path: {{ .Values.o2ims.hostCertPath | quote }}