1 # Copyright © 2018 Amdocs, AT&T, Bell Canada
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.
15 apiVersion: extensions/v1beta1
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
21 app: {{ include "common.name" . }}
23 replicas: {{ .Values.replicaCount }}
27 app: {{ include "common.name" . }}
28 name: {{ .Release.Name }}
33 - name: {{ include "common.name" . }}
34 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
35 imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
37 - containerPort: {{ .Values.service.internalPort1 }}
38 - containerPort: {{ .Values.service.internalPort2 }}
44 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: key}
47 - name: EMAIL_HOST_USER
51 - name: EMAIL_HOST_PASSWORD
53 secretKeyRef: {name: email-secret, key: password}
61 value: "cms_postgresuser"
64 secretKeyRef: {name: postgresql-passwords, key: cmsPassword}
65 - name: ICE_CONTACT_FROM_ADDRESS
67 - name: CMS_NEVERCACHE_KEY
69 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: nevercache_key}
72 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: app_user}
73 - name: CMS_APP_USER_MAIL
75 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: app_user_mail}
76 - name: CMS_APP_USER_PASSWORD
78 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: app_user_password}
79 - name: CMS_APP_CLIENT_ID
81 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: app_client_id}
82 - name: CMS_APP_CLIENT_SECRET
84 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: app_client_secret}
87 - name: DJANGO_DEBUG_MODE
90 value: "dev-s3.vvp.example.com"
93 - name: AWS_ACCESS_KEY_ID
95 secretKeyRef: {name: em-secret, key: aws_access_key_id}
96 - name: AWS_SECRET_ACCESS_KEY
98 secretKeyRef: {name: em-secret, key: aws_secret_access_key}
99 command: ["/docker-entrypoint.sh", "/usr/local/bin/gunicorn", "-c", "/opt/configmaps/settings/gunicorn.ini", "cms.wsgi:application", ]
102 mountPath: /opt/configmaps/settings/
104 mountPath: /opt/secrets/site-crt/
108 name: {{ include "common.fullname" . }}-settings