blob: fcd82a40c07c77744b60680d54037dda5362b5b7 [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
Mandeep Khindad6ea9872017-06-24 11:49:37 -040016 spec:
vasundhrad76102d2017-11-22 13:13:27 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - sdnc-db-container
23 - --container-name
24 - sdnc-controller-container
25 env:
26 - name: NAMESPACE
27 valueFrom:
28 fieldRef:
29 apiVersion: v1
30 fieldPath: metadata.namespace
31 image: {{ .Values.image.readiness }}
32 imagePullPolicy: {{ .Values.pullPolicy }}
33 name: sdnc-portal-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040034 containers:
35 - command:
36 - /bin/bash
37 - -c
Mandeep Khindaedc59412017-10-05 12:18:14 +000038 - cd /opt/onap/sdnc/admportal/shell && ./start_portal.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040039 env:
40 - name: MYSQL_ROOT_PASSWORD
41 value: openECOMP1.0
42 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000043 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000044 image: {{ .Values.image.admportalSdnc }}
45 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040046 name: sdnc-portal-container
47 ports:
48 - containerPort: 8843
yuryn8b3bc5a2017-09-13 19:21:03 +030049 volumeMounts:
50 - name: localtime
51 mountPath: /etc/localtime
52 readOnly: true
Mandeep Khindaedc59412017-10-05 12:18:14 +000053 - mountPath: /opt/onap/sdnc/data/properties/aaiclient.properties
54 name: sdnc-aaiclient-properties
55 - mountPath: /opt/onap/sdnc/data/properties/admportal.json
56 name: sdnc-admportal-json
Mandeep Khindad6ea9872017-06-24 11:49:37 -040057 readinessProbe:
58 tcpSocket:
59 port: 8843
60 initialDelaySeconds: 5
61 periodSeconds: 10
62 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030063 volumes:
64 - name: localtime
65 hostPath:
66 path: /etc/localtime
Mandeep Khindaedc59412017-10-05 12:18:14 +000067 - name: sdnc-aaiclient-properties
68 hostPath:
69 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/aaiclient.properties
70 - name: sdnc-admportal-json
71 hostPath:
72 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/sdnc/conf/admportal.json
Borislav Glozman5197e2e2017-07-24 10:45:28 +030073 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000074 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000075#{{ end }}