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
52 command: ["/bin/bash", "/opt/postgres_start.sh"]
61 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
62 command: ["/bin/bash", "/opt/o2pubsub_start.sh"]
68 - name: LOGGING_CONFIG_LEVEL
69 value: {{ .Values.o2ims.logginglevel }}
71 value: {{ .Values.ocloud.OS_AUTH_URL }}
73 value: {{ .Values.ocloud.OS_PASSWORD }}
75 value: {{ .Values.ocloud.OS_USERNAME }}
76 - name: PYTHONDONTWRITEBYTECODE
80 - name: K8S_KUBECONFIG
81 value: {{ .Values.ocloud.K8S_KUBECONFIG }}
85 - name: applicationconfig
86 mountPath: /configs/o2app.conf
90 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
91 command: ["/bin/bash", "/opt/o2watcher_start.sh"]
93 - name: API_HOST_EXTERNAL_FLOATING
94 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
99 - name: LOGGING_CONFIG_LEVEL
100 value: {{ .Values.o2ims.logginglevel }}
102 value: {{ .Values.ocloud.OS_AUTH_URL }}
104 value: {{ .Values.ocloud.OS_PASSWORD }}
106 value: {{ .Values.ocloud.OS_USERNAME }}
107 - name: PYTHONDONTWRITEBYTECODE
114 - name: applicationconfig
115 mountPath: /configs/o2app.conf
119 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
123 - name: API_HOST_EXTERNAL_FLOATING
124 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
130 value: /src/o2app/entrypoints/flask_application.py
132 value: {{ .Values.o2ims.logginglevel }}
133 - name: LOGGING_CONFIG_LEVEL
134 value: {{ .Values.o2ims.logginglevel }}
138 - name: PYTHONDONTWRITEBYTECODE
140 - name: PYTHONUNBUFFERED
144 - name: HELM_USER_PASSWD
145 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
146 command: ["/bin/bash", "/opt/o2api_start.sh"]
151 # mountPath: /configs
152 - name: applicationconfig
153 mountPath: /configs/o2app.conf
157 mountPath: /configs/ca.cert
160 - name: serverkeyconfig
161 mountPath: /configs/server.key
165 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
169 - name: API_HOST_EXTERNAL_FLOATING
170 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
171 - name: HELM_USER_PASSWD
172 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
173 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
180 name: {{ .Chart.Name }}-scripts-configmap
184 name: {{ .Chart.Name }}-application-config
185 name: applicationconfig
187 name: {{ .Chart.Name }}-serverkeyconfig
188 name: serverkeyconfig
190 name: {{ .Chart.Name }}-caconfig