blob: 0dd92027df9907e57af784447c06fc1b2179a642 [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 }}
mayankc8f632c2018-01-21 10:08:25 +000034 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
mayankc8f632c2018-01-21 10:08:25 +000042 subPath: application.properties
Mandeep Khinda82c63d32017-08-21 16:04:37 -040043 ports:
44 - containerPort: 8082
45 readinessProbe:
46 tcpSocket:
47 port: 8082
48 initialDelaySeconds: 5
49 periodSeconds: 10
50 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030051 - name: localtime
52 hostPath:
53 path: /etc/localtime
Mandeep Khinda82c63d32017-08-21 16:04:37 -040054 - name: portalwidgets-application-properties
mayankc8f632c2018-01-21 10:08:25 +000055 configMap:
56 name: portal-onapwidgetms-configmap
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000057 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030058 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra6f620442017-11-22 12:26:25 +000059#{{ end }}