blob: 6f27ef6e8054290eb58b33c3708243c68573a391 [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:
vaibhav_16dec49302052018-02-15 10:00:06 +00008 replicas: {{ .Values.portalWidgetsReplicas }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -04009 selector:
10 matchLabels:
11 app: portalwidgets
12 template:
13 metadata:
14 labels:
15 app: portalwidgets
16 name: portalwidgets
Mandeep Khinda82c63d32017-08-21 16:04:37 -040017 spec:
vasundhra6f620442017-11-22 12:26:25 +000018 initContainers:
19 - command:
20 - /root/ready.py
21 args:
22 - --container-name
23 - portaldb
24 env:
25 - name: NAMESPACE
26 valueFrom:
27 fieldRef:
28 apiVersion: v1
29 fieldPath: metadata.namespace
30 image: {{ .Values.image.readiness }}
31 imagePullPolicy: {{ .Values.pullPolicy }}
32 name: portalapps-readiness
Mandeep Khinda82c63d32017-08-21 16:04:37 -040033 containers:
kerenjcbac0102017-08-23 10:22:33 +000034 - image: {{ .Values.image.portalwms }}
mayankc8f632c2018-01-21 10:08:25 +000035 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khinda82c63d32017-08-21 16:04:37 -040036 name: portalwidgets
37 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030038 - mountPath: /etc/localtime
39 name: localtime
40 readOnly: true
Mandeep Khinda82c63d32017-08-21 16:04:37 -040041 - mountPath: /application.properties
42 name: portalwidgets-application-properties
mayankc8f632c2018-01-21 10:08:25 +000043 subPath: application.properties
Mandeep Khinda82c63d32017-08-21 16:04:37 -040044 ports:
45 - containerPort: 8082
46 readinessProbe:
47 tcpSocket:
48 port: 8082
49 initialDelaySeconds: 5
50 periodSeconds: 10
51 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030052 - name: localtime
53 hostPath:
54 path: /etc/localtime
Mandeep Khinda82c63d32017-08-21 16:04:37 -040055 - name: portalwidgets-application-properties
mayankc8f632c2018-01-21 10:08:25 +000056 configMap:
57 name: portal-onapwidgetms-configmap
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000058 imagePullSecrets:
yurynfcef9942017-10-26 17:10:50 +030059 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
vasundhra6f620442017-11-22 12:26:25 +000060#{{ end }}