blob: a141e765dc930b035d784c4be6b42607cdef05bc [file] [log] [blame]
Mandeep Khindad6ea9872017-06-24 11:49:37 -04001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: sdnc-portal
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00005 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04006spec:
7 selector:
8 matchLabels:
9 app: sdnc-portal
10 template:
11 metadata:
12 labels:
13 app: sdnc-portal
14 name: sdnc-portal
15 annotations:
16 pod.beta.kubernetes.io/init-containers: '[
17 {
18 "args": [
19 "--container-name",
20 "sdnc-db-container",
21 "--container-name",
22 "sdnc-controller-container"
23 ],
24 "command": [
25 "/root/ready.py"
26 ],
27 "env": [
28 {
29 "name": "NAMESPACE",
30 "valueFrom": {
31 "fieldRef": {
32 "apiVersion": "v1",
33 "fieldPath": "metadata.namespace"
34 }
35 }
36 }
37 ],
kerenj9daad022017-08-23 13:35:43 +000038 "image": "{{ .Values.image.readiness }}",
39 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 "name": "sdnc-portal-readiness"
41 }
42 ]'
43 spec:
44 containers:
45 - command:
46 - /bin/bash
47 - -c
48 - cd /opt/openecomp/sdnc/admportal/shell && ./start_portal.sh
49 env:
50 - name: MYSQL_ROOT_PASSWORD
51 value: openECOMP1.0
52 - name: SDNC_CONFIG_DIR
53 value: /opt/openecomp/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000054 image: {{ .Values.image.admportalSdnc }}
55 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 name: sdnc-portal-container
57 ports:
58 - containerPort: 8843
59 readinessProbe:
60 tcpSocket:
61 port: 8843
62 initialDelaySeconds: 5
63 periodSeconds: 10
64 restartPolicy: Always
Borislav Glozman5197e2e2017-07-24 10:45:28 +030065 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000066 - name: "{{ .Values.nsPrefix }}-docker-registry-key"