blob: 73d8e0a6cb0b63cd7f5f4949b9a4a219ab2adda3 [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:
vaibhav_16decb23999a2018-02-14 09:00:07 +00008 replicas: {{ .Values.portalReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: sdnc-portal
12 template:
13 metadata:
14 labels:
15 app: sdnc-portal
16 name: sdnc-portal
Mandeep Khindad6ea9872017-06-24 11:49:37 -040017 spec:
vasundhrad76102d2017-11-22 13:13:27 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - sdnc-db-container
24 - --container-name
25 - sdnc-controller-container
26 env:
27 - name: NAMESPACE
28 valueFrom:
29 fieldRef:
30 apiVersion: v1
31 fieldPath: metadata.namespace
32 image: {{ .Values.image.readiness }}
33 imagePullPolicy: {{ .Values.pullPolicy }}
34 name: sdnc-portal-readiness
Mandeep Khindad6ea9872017-06-24 11:49:37 -040035 containers:
36 - command:
37 - /bin/bash
38 - -c
Mandeep Khindaedc59412017-10-05 12:18:14 +000039 - cd /opt/onap/sdnc/admportal/shell && ./start_portal.sh
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 env:
41 - name: MYSQL_ROOT_PASSWORD
42 value: openECOMP1.0
43 - name: SDNC_CONFIG_DIR
Mandeep Khindaedc59412017-10-05 12:18:14 +000044 value: /opt/onap/sdnc/data/properties
kerenj9daad022017-08-23 13:35:43 +000045 image: {{ .Values.image.admportalSdnc }}
46 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040047 name: sdnc-portal-container
48 ports:
49 - containerPort: 8843
yuryn8b3bc5a2017-09-13 19:21:03 +030050 volumeMounts:
51 - name: localtime
52 mountPath: /etc/localtime
53 readOnly: true
mayankg27036af54e62018-01-16 05:33:08 +000054 - mountPath: /opt/onap/sdnc/data/properties/
55 name: sdnc-conf
Mandeep Khindad6ea9872017-06-24 11:49:37 -040056 readinessProbe:
57 tcpSocket:
58 port: 8843
59 initialDelaySeconds: 5
60 periodSeconds: 10
61 restartPolicy: Always
yuryn8b3bc5a2017-09-13 19:21:03 +030062 volumes:
63 - name: localtime
64 hostPath:
65 path: /etc/localtime
mayankg27036af54e62018-01-16 05:33:08 +000066 - name: sdnc-conf
67 configMap:
68 name: sdnc-conf-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +030069 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000070 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhrad76102d2017-11-22 13:13:27 +000071#{{ end }}