blob: 5c9df34f49b1b90ab53d02d86746dbe994189f50 [file] [log] [blame]
jasmineWenc2cc5ff2018-06-22 18:16:24 +00001# Copyright © 2018 Amdocs, AT&T, Bell Canada
2#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15apiVersion: extensions/v1beta1
16kind: Deployment
17metadata:
18 name: {{ include "common.fullname" . }}
19 namespace: {{ include "common.namespace" . }}
20 labels:
21 app: {{ include "common.name" . }}
22spec:
23 replicas: {{ .Values.replicaCount }}
24 template:
25 metadata:
26 labels:
27 app: {{ include "common.name" . }}
28 name: {{ .Release.Name }}
29 spec:
30 imagePullSecrets:
31 - name: onapkey
32 containers:
33 - name: {{ include "common.name" . }}
34 image: "{{ include "common.repository" . }}/{{ .Values.image }}"
35 imagePullPolicy: {{ .Values.pullPolicy | default .Values.global.pullPolicy }}
36 ports:
37 - containerPort: 80
38 - containerPort: 8282
39 - containerPort: 9000
40 volumeMounts:
41 - name: ci-settings
42 mountPath: /opt/configmaps/settings/
43 - name: site-crt
44 mountPath: /opt/secrets/site-crt/
45 env:
46 - name: ICE_ENVIRONMENT
47 value: "development"
48 - name: PROGRAM_NAME_URL_PREFIX
49 value: "vvp"
50 - name: SERVICE_PROVIDER
51 value: "NA"
52 - name: PROGRAM_NAME
53 value: "VVP"
54 - name: SERVICE_PROVIDER_DOMAIN
55 value: "na.com"
56 - name: SECRET_KEY
57 valueFrom:
58 secretKeyRef: {name: em-secret, key: key}
59 - name: EM_DB_HOST
60 value: postgresql
61 - name: EM_DB_PORT
62 value: "5432"
63 - name: EM_DB_NAME
64 value: icedb
65 - name: EM_DB_USER
66 value: "em_postgresuser"
67 - name: EM_DB_PASSWORD
68 valueFrom:
69 secretKeyRef: {name: postgresql-passwords, key: emPassword}
70 - name: CMS_DB_HOST
71 value: postgresql
72 - name: CMS_DB_PORT
73 value: "5432"
74 - name: CMS_DB_NAME
75 value: "icecmsdb"
76 - name: CMS_DB_USER
77 value: "cms_postgresuser"
78 - name: CMS_DB_PASSWORD
79 valueFrom:
80 secretKeyRef: {name: postgresql-passwords, key: cmsPassword}
81 - name: CI_DB_HOST
82 value: postgresql
83 - name: CI_DB_PORT
84 value: "5432"
85 - name: CI_DB_NAME
86 value: icedb
87 - name: CI_DB_USER
88 value: "em_postgresuser"
89 - name: CI_DB_PASSWORD
90 valueFrom:
91 secretKeyRef: {name: postgresql-passwords, key: ciPassword}
92 - name: STATIC_ROOT
93 value: "/app/htdocs"
94 - name: ICE_CONTACT_FROM_ADDRESS
95 value: "example"
96 - name: SECRET_WEBHOOK_TOKEN
97 valueFrom:
98 secretKeyRef: {name: em-secret, key: em_webhook_token}
99 - name: SECRET_GITLAB_AUTH_TOKEN
100 valueFrom:
101 secretKeyRef: {name: gitlab-password, key: auth-token}
102 - name: SECRET_JENKINS_PASSWORD
103 valueFrom:
104 secretKeyRef: {name: em-secret, key: jenkins_admin_password}
105 - name: ICE_DOMAIN
106 value: https://development.vvp.example.com
107 - name: ICE_EM_DOMAIN_NAME
108 value: https://development.vvp.example.com
109 - name: OAUTHLIB_INSECURE_TRANSPORT
110 value: "1"
111 - name: CI_ADMIN_USER
112 value: "ciadminuser"
113 - name: CI_ADMIN_MAIL
114 value: "ciadminmail@example.com"
115 - name: CI_ADMIN_PASSWORD
116 valueFrom:
117 secretKeyRef: {name: {{ include "common.fullname" . }}-secret, key: admin_password}
118 - name: S3_HOST
119 value: "dev-s3.vvp.example.com"
120 - name: S3_PORT
121 value: "443"
122 - name: AWS_ACCESS_KEY_ID
123 valueFrom:
124 secretKeyRef: {name: em-secret, key: aws_access_key_id}
125 - name: AWS_SECRET_ACCESS_KEY
126 valueFrom:
127 secretKeyRef: {name: em-secret, key: aws_secret_access_key}
128 command: ["/app/docker-entrypoint.sh", "/usr/local/bin/gunicorn", "-c", "/opt/configmaps/settings/gunicorn.ini", "web.wsgi:application", ]
129 volumes:
130 - name: ci-settings
131 configMap:
132 name: {{ include "common.fullname" . }}-settings
133 - name: site-crt
134 secret:
135 secretName: site-crt