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
130 - name: applicationconfig
131 mountPath: /configs/o2app.conf
135 image: "{{ .Values.o2ims.images.tags.o2service }}"
139 - name: API_HOST_EXTERNAL_FLOATING
140 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
146 # value: /src/o2app/entrypoints/flask_application.py
147 # - name: FLASK_DEBUG
148 # value: {{ .Values.o2ims.logginglevel }}
149 - name: LOGGING_CONFIG_LEVEL
150 value: {{ .Values.o2ims.logginglevel }}
154 - name: PYTHONDONTWRITEBYTECODE
156 - name: PYTHONUNBUFFERED
160 - name: HELM_USER_PASSWD
161 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
162 command: ["/bin/bash", "/opt/o2api_start.sh"]
166 {{- if .Values.o2dms.helm_cli_enable }}
170 - name: applicationconfig
171 mountPath: /configs/o2app.conf
175 mountPath: /configs/server.crt
179 mountPath: /configs/server.key
183 mountPath: /configs/smoca.crt
185 {{- if .Values.o2dms.helm_cli_enable }}
187 image: "{{ .Values.o2ims.images.tags.o2service }}"
191 - name: API_HOST_EXTERNAL_FLOATING
192 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
193 - name: HELM_USER_PASSWD
194 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
195 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
205 name: {{ .Chart.Name }}-scripts-configmap
206 {{- if .Values.o2dms.helm_cli_enable }}
211 name: {{ .Chart.Name }}-application-config
212 name: applicationconfig
214 name: {{ .Chart.Name }}-serverkey
217 name: {{ .Chart.Name }}-servercrt
220 name: {{ .Chart.Name }}-smocacrt
223 persistentVolumeClaim:
224 claimName: {{ .Chart.Name }}-db-pv