blob: 7e8b59c1ebb9cab4324503992701ecd516a267c2 [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
mayankg27036af54e62018-01-16 05:33:08 +000053 - mountPath: /opt/onap/sdnc/data/properties/
54 name: sdnc-conf
Mandeep Khindad6ea9872017-06-24 11:49:37 -040055 readinessProbe:
56 tcpSocket:
57 port: 8843
58 initialDelaySeconds: 5
59 periodSeconds: 10
60 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030061 volumes:
62 - name: localtime
63 hostPath:
64 path: /etc/localtime
mayankg27036af54e62018-01-16 05:33:08 +000065 - name: sdnc-conf
66 configMap:
67 name: sdnc-conf-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +030068 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000069 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000070#{{ end }}