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 }}
34 {{- if .Values.imagePullSecrets }}
36 {{- range .Values.imagePullSecrets }}
40 {{- if .Values.o2ims.affinity }}
42 {{ toYaml .Values.o2ims.affinity | indent 8 }}
46 image: "{{ .Values.o2ims.images.tags.postgres }}"
50 - name: POSTGRES_PASSWORD
55 value: /var/lib/postgresql/data/pgdata
56 command: ["/bin/bash", "/opt/postgres_start.sh"]
61 mountPath: /var/lib/postgresql/data
63 image: "{{ .Values.o2ims.images.tags.redis }}"
67 image: "{{ .Values.o2ims.images.tags.o2service }}"
68 command: ["/bin/bash", "/opt/o2pubsub_start.sh"]
74 - name: LOGGING_CONFIG_LEVEL
75 value: {{ .Values.o2ims.logginglevel }}
77 value: {{ .Values.ocloud.OS_AUTH_URL }}
79 value: {{ .Values.ocloud.OS_PASSWORD }}
81 value: {{ .Values.ocloud.OS_USERNAME }}
82 - name: PYTHONDONTWRITEBYTECODE
86 - name: K8S_KUBECONFIG
87 value: {{ .Values.ocloud.K8S_KUBECONFIG }}
91 - name: applicationconfig
92 mountPath: /configs/o2app.conf
96 mountPath: /configs/smoca.crt
99 image: "{{ .Values.o2ims.images.tags.o2service }}"
100 command: ["/bin/bash", "/opt/o2watcher_start.sh"]
102 - name: API_HOST_EXTERNAL_FLOATING
103 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
108 - name: LOGGING_CONFIG_LEVEL
109 value: {{ .Values.o2ims.logginglevel }}
111 value: {{ .Values.ocloud.OS_AUTH_URL }}
113 value: {{ .Values.ocloud.OS_PASSWORD }}
115 value: {{ .Values.ocloud.OS_USERNAME }}
116 - name: PYTHONDONTWRITEBYTECODE
123 - name: applicationconfig
124 mountPath: /configs/o2app.conf
128 image: "{{ .Values.o2ims.images.tags.o2service }}"
132 - name: API_HOST_EXTERNAL_FLOATING
133 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
139 # value: /src/o2app/entrypoints/flask_application.py
140 # - name: FLASK_DEBUG
141 # value: {{ .Values.o2ims.logginglevel }}
142 - name: LOGGING_CONFIG_LEVEL
143 value: {{ .Values.o2ims.logginglevel }}
147 - name: PYTHONDONTWRITEBYTECODE
149 - name: PYTHONUNBUFFERED
153 - name: HELM_USER_PASSWD
154 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
155 command: ["/bin/bash", "/opt/o2api_start.sh"]
160 # mountPath: /configs
161 - name: applicationconfig
162 mountPath: /configs/o2app.conf
166 mountPath: /configs/server.crt
170 mountPath: /configs/server.key
173 {{- if .Values.o2dms.helm_cli_enable }}
175 image: "{{ .Values.o2ims.images.tags.o2service }}"
179 - name: API_HOST_EXTERNAL_FLOATING
180 value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
181 - name: HELM_USER_PASSWD
182 value: {{ .Values.ocloud.HELM_USER_PASSWD }}
183 command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
191 name: {{ .Chart.Name }}-scripts-configmap
195 name: {{ .Chart.Name }}-application-config
196 name: applicationconfig
198 name: {{ .Chart.Name }}-serverkey
201 name: {{ .Chart.Name }}-servercrt
204 name: {{ .Chart.Name }}-smocacrt
207 persistentVolumeClaim:
208 claimName: {{ .Chart.Name }}-db-pv