1 # Copyright (C) 2021 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 }}
33 serviceAccountName: {{ .Values.o2ims.serviceaccountname }}
35 # - name: {{ .Values.o2ims.imagePullSecrets }}
37 - name: {{ .Values.o2ims.serviceaccountname }}-registry-secret
38 {{- if .Values.o2ims.affinity }}
40 {{ toYaml .Values.o2ims.affinity | indent 8 }}
48 - name: POSTGRES_PASSWORD
53 value: /var/lib/postgresql/data/pgdata
54 command: ["/bin/bash", "/opt/postgres_start.sh"]
59 mountPath: /var/lib/postgresql/data
65 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
66 command: ["/bin/bash", "/opt/o2pubsub_start.sh"]
72 - name: LOGGING_CONFIG_LEVEL
73 value: {{ .Values.o2ims.logginglevel }}
75 value: {{ .Values.ocloud.OS_AUTH_URL }}
77 value: {{ .Values.ocloud.OS_PASSWORD }}
79 value: {{ .Values.ocloud.OS_USERNAME }}
80 - name: PYTHONDONTWRITEBYTECODE
84 - name: K8S_KUBECONFIG
85 value: {{ .Values.ocloud.K8S_KUBECONFIG }}
89 - name: applicationconfig
90 mountPath: /configs/o2app.conf
94 mountPath: /configs/smoca.crt
97 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
98 command: ["/bin/bash", "/opt/o2watcher_start.sh"]
100 - name: API_HOST_EXTERNAL_FLOATING
101 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
106 - name: LOGGING_CONFIG_LEVEL
107 value: {{ .Values.o2ims.logginglevel }}
109 value: {{ .Values.ocloud.OS_AUTH_URL }}
111 value: {{ .Values.ocloud.OS_PASSWORD }}
113 value: {{ .Values.ocloud.OS_USERNAME }}
114 - name: PYTHONDONTWRITEBYTECODE
121 - name: applicationconfig
122 mountPath: /configs/o2app.conf
126 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
130 - name: API_HOST_EXTERNAL_FLOATING
131 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
137 value: /src/o2app/entrypoints/flask_application.py
139 value: {{ .Values.o2ims.logginglevel }}
140 - name: LOGGING_CONFIG_LEVEL
141 value: {{ .Values.o2ims.logginglevel }}
145 - name: PYTHONDONTWRITEBYTECODE
147 - name: PYTHONUNBUFFERED
151 - name: HELM_USER_PASSWD
152 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
153 command: ["/bin/bash", "/opt/o2api_start.sh"]
158 # mountPath: /configs
159 - name: applicationconfig
160 mountPath: /configs/o2app.conf
164 mountPath: /configs/server.crt
168 mountPath: /configs/server.key
171 {{- if .Values.o2dms.helm_cli_enable }}
173 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
177 - name: API_HOST_EXTERNAL_FLOATING
178 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
179 - name: HELM_USER_PASSWD
180 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
181 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
189 name: {{ .Chart.Name }}-scripts-configmap
193 name: {{ .Chart.Name }}-application-config
194 name: applicationconfig
196 name: {{ .Chart.Name }}-serverkey
199 name: {{ .Chart.Name }}-servercrt
202 name: {{ .Chart.Name }}-smocacrt
205 persistentVolumeClaim:
206 claimName: {{ .Chart.Name }}-db-pv