labels:
app: o2api
spec:
+ serviceAccountName: {{ .Values.o2ims.serviceaccountname }}
+ # imagePullSecrets:
+ # - name: {{ .Values.o2ims.imagePullSecrets }}
imagePullSecrets:
- - name: {{ .Values.o2ims.imagePullSecrets }}
+ - name: {{ .Values.o2ims.serviceaccountname }}-registry-secret
{{- if .Values.o2ims.affinity }}
affinity:
{{ toYaml .Values.o2ims.affinity | indent 8 }}
volumeMounts:
- name: scripts
mountPath: /opt
+ - name: applicationconfig
+ mountPath: /configs/o2app.conf
+ subPath: config.json
+ readOnly: true
- name: watcher
image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
command: ["/bin/bash", "/opt/o2watcher_start.sh"]
volumeMounts:
- name: scripts
mountPath: /opt
+ - name: applicationconfig
+ mountPath: /configs/o2app.conf
+ subPath: config.json
+ readOnly: true
- name: o2api
image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
ports:
- containerPort: 80
env:
- - name: API_HOST
- value: api
+ - name: API_HOST_EXTERNAL_FLOATING
+ value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
- name: DB_HOST
value: postgres
- name: DB_PASSWORD
value: o2ims123
- name: FLASK_APP
- value: /root/o2/o2app/entrypoints/flask_application.py
+ value: /src/o2app/entrypoints/flask_application.py
- name: FLASK_DEBUG
value: {{ .Values.o2ims.logginglevel }}
- name: LOGGING_CONFIG_LEVEL
value: "1"
- name: REDIS_HOST
value: redis
+ - name: HELM_USER_PASSWD
+ value: {{ .Values.ocloud.HELM_USER_PASSWD }}
command: ["/bin/bash", "/opt/o2api_start.sh"]
volumeMounts:
- name: scripts
mountPath: /opt
+ # - name: configs
+ # mountPath: /configs
+ - name: applicationconfig
+ mountPath: /configs/o2app.conf
+ subPath: config.json
+ readOnly: true
+ - name: servercrt
+ mountPath: /configs/server.crt
+ subPath: config.json
+ readOnly: true
+ - name: serverkey
+ mountPath: /configs/server.key
+ subPath: config.json
+ readOnly: true
+ - name: smocacrt
+ mountPath: /configs/smoca.crt
+ subPath: config.json
+ readOnly: true
+ - name: helmcli
+ image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
+ ports:
+ - containerPort: 22
+ env:
+ - name: API_HOST_EXTERNAL_FLOATING
+ value: {{ .Values.ocloud.API_HOST_EXTERNAL_FLOATING }}
+ - name: HELM_USER_PASSWD
+ value: {{ .Values.ocloud.HELM_USER_PASSWD }}
+ command: ["/bin/bash", "/opt/o2_helmcli_start.sh"]
+ volumeMounts:
+ - name: scripts
+ mountPath: /opt
volumes:
- name: scripts
configMap:
name: {{ .Chart.Name }}-scripts-configmap
+ # - name: configs
+ # emptyDir: {}
+ - configMap:
+ name: {{ .Chart.Name }}-application-config
+ name: applicationconfig
+ - configMap:
+ name: {{ .Chart.Name }}-serverkey
+ name: serverkey
+ - configMap:
+ name: {{ .Chart.Name }}-servercrt
+ name: servercrt
+ - configMap:
+ name: {{ .Chart.Name }}-smocacrt
+ name: smocacrt
---