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 mountPath: /configs/smoca.crt
93 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
94 command: ["/bin/bash", "/opt/o2watcher_start.sh"]
96 - name: API_HOST_EXTERNAL_FLOATING
97 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
102 - name: LOGGING_CONFIG_LEVEL
103 value: {{ .Values.o2ims.logginglevel }}
105 value: {{ .Values.ocloud.OS_AUTH_URL }}
107 value: {{ .Values.ocloud.OS_PASSWORD }}
109 value: {{ .Values.ocloud.OS_USERNAME }}
110 - name: PYTHONDONTWRITEBYTECODE
117 - name: applicationconfig
118 mountPath: /configs/o2app.conf
122 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
126 - name: API_HOST_EXTERNAL_FLOATING
127 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
133 value: /src/o2app/entrypoints/flask_application.py
135 value: {{ .Values.o2ims.logginglevel }}
136 - name: LOGGING_CONFIG_LEVEL
137 value: {{ .Values.o2ims.logginglevel }}
141 - name: PYTHONDONTWRITEBYTECODE
143 - name: PYTHONUNBUFFERED
147 - name: HELM_USER_PASSWD
148 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
149 command: ["/bin/bash", "/opt/o2api_start.sh"]
154 # mountPath: /configs
155 - name: applicationconfig
156 mountPath: /configs/o2app.conf
160 mountPath: /configs/server.crt
164 mountPath: /configs/server.key
168 image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
172 - name: API_HOST_EXTERNAL_FLOATING
173 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
174 - name: HELM_USER_PASSWD
175 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
176 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
183 name: {{ .Chart.Name }}-scripts-configmap
187 name: {{ .Chart.Name }}-application-config
188 name: applicationconfig
190 name: {{ .Chart.Name }}-serverkey
193 name: {{ .Chart.Name }}-servercrt
196 name: {{ .Chart.Name }}-smocacrt