blob: 600419399e898abaf4c2cc76ccb4e873bea09f77 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disablePortalPortalwidgets }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: portalwidgets
Mandeep Khinda0e8f8892017-08-25 03:31:17 +00006 namespace: "{{ .Values.nsPrefix }}-portal"
Mandeep Khinda82c63d32017-08-21 16:04:37 -04007spec:
8 selector:
9 matchLabels:
10 app: portalwidgets
11 template:
12 metadata:
13 labels:
14 app: portalwidgets
15 name: portalwidgets
Mandeep Khinda82c63d32017-08-21 16:04:37 -040016 spec:
vasundhra6f620442017-11-22 12:26:25 +000017 initContainers:
18 - command:
19 - /root/ready.py
20 args:
21 - --container-name
22 - portaldb
23 env:
24 - name: NAMESPACE
25 valueFrom:
26 fieldRef:
27 apiVersion: v1
28 fieldPath: metadata.namespace
29 image: {{ .Values.image.readiness }}
30 imagePullPolicy: {{ .Values.pullPolicy }}
31 name: portalapps-readiness
Mandeep Khinda82c63d32017-08-21 16:04:37 -040032 containers:
kerenjcbac0102017-08-23 10:22:33 +000033 - image: {{ .Values.image.portalwms }}
34 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040035 name: portalwidgets
36 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030037 - mountPath: /etc/localtime
38 name: localtime
39 readOnly: true
Mandeep Khinda82c63d32017-08-21 16:04:37 -040040 - mountPath: /application.properties
41 name: portalwidgets-application-properties
42 ports:
43 - containerPort: 8082
44 readinessProbe:
45 tcpSocket:
46 port: 8082
47 initialDelaySeconds: 5
48 periodSeconds: 10
49 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030050 - name: localtime
51 hostPath:
52 path: /etc/localtime
Mandeep Khinda82c63d32017-08-21 16:04:37 -040053 - name: portalwidgets-application-properties
54 hostPath:
Mandeep Khinda52c8fd62017-10-24 22:13:03 +000055 path: /dockerdata-nfs/{{ .Values.nsPrefix }}/portal/portal-fe/webapps/etc/ONAPWIDGETMS/application.properties
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000056 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030057 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra6f620442017-11-22 12:26:25 +000058#{{ end }}