blob: 9ab224bad62c400c43073b8ca57e3473c5e8714a [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableSdncSdncPortal }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: sdnc-portal
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-sdnc"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
8 selector:
9 matchLabels:
10 app: sdnc-portal
11 template:
12 metadata:
13 labels:
14 app: sdnc-portal
15 name: sdnc-portal
16 annotations:
17 pod.beta.kubernetes.io/init-containers: '[
18 {
19 "args": [
20 "--container-name",
21 "sdnc-db-container",
22 "--container-name",
23 "sdnc-controller-container"
24 ],
25 "command": [
26 "/root/ready.py"
27 ],
28 "env": [
29 {
30 "name": "NAMESPACE",
31 "valueFrom": {
32 "fieldRef": {
33 "apiVersion": "v1",
34 "fieldPath": "metadata.namespace"
35 }
36 }
37 }
38 ],
kerenj9daad022017-08-23 13:35:43 +000039 "image": "{{ .Values.image.readiness }}",
40 "imagePullPolicy": "{{ .Values.pullPolicy }}",
Mandeep Khindad6ea9872017-06-24 11:49:37 -040041 "name": "sdnc-portal-readiness"
42 }
43 ]'
44 spec:
45 containers:
46 - command:
47 - /bin/bash
48 - -c
Mandeep Khindaedc59412017-10-05 12:18:14 +000049 - cd /opt/onap/sdnc/admportal/shell && ./start_portal.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040050 env:
51 - name: MYSQL_ROOT_PASSWORD
52 value: openECOMP1.0
53 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000054 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000055 image: {{ .Values.image.admportalSdnc }}
56 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 name: sdnc-portal-container
58 ports:
59 - containerPort: 8843
yuryn8b3bc5a2017-09-13 19:21:03 +030060 volumeMounts:
61 - name: localtime
62 mountPath: /etc/localtime
63 readOnly: true
Mandeep Khindaedc59412017-10-05 12:18:14 +000064 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
65 name: sdnc-aaiclient-properties
66 - mountPath: /opt/onap/sdnc/data/properties/admportal.json
67 name: sdnc-admportal-json
Mandeep Khindad6ea9872017-06-24 11:49:37 -040068 readinessProbe:
69 tcpSocket:
70 port: 8843
71 initialDelaySeconds: 5
72 periodSeconds: 10
73 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030074 volumes:
75 - name: localtime
76 hostPath:
77 path: /etc/localtime
Mandeep Khindaedc59412017-10-05 12:18:14 +000078 - name: sdnc-aaiclient-properties
79 hostPath:
80 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
81 - name: sdnc-admportal-json
82 hostPath:
83 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +030084 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000085 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030086#{{ end }}