yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disablePortalPortalwidgets }} |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 5 | name: portal-widgets |
| 6 | namespace: "{{ .Values.nsPrefix }}" |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 7 | spec: |
vaibhav_16dec | 4930205 | 2018-02-15 10:00:06 +0000 | [diff] [blame] | 8 | replicas: {{ .Values.portalWidgetsReplicas }} |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: portalwidgets |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: portalwidgets |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 16 | name: portal-widgets |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 17 | spec: |
vasundhra | 6f62044 | 2017-11-22 12:26:25 +0000 | [diff] [blame] | 18 | 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 Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 33 | containers: |
kerenj | cbac010 | 2017-08-23 10:22:33 +0000 | [diff] [blame] | 34 | - image: {{ .Values.image.portalwms }} |
mayank | c8f632c | 2018-01-21 10:08:25 +0000 | [diff] [blame] | 35 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 36 | name: portalwidgets |
| 37 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 38 | - mountPath: /etc/localtime |
| 39 | name: localtime |
| 40 | readOnly: true |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 41 | - mountPath: /application.properties |
| 42 | name: portalwidgets-application-properties |
mayank | c8f632c | 2018-01-21 10:08:25 +0000 | [diff] [blame] | 43 | subPath: application.properties |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 44 | ports: |
| 45 | - containerPort: 8082 |
| 46 | readinessProbe: |
| 47 | tcpSocket: |
| 48 | port: 8082 |
| 49 | initialDelaySeconds: 5 |
| 50 | periodSeconds: 10 |
| 51 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 52 | - name: localtime |
| 53 | hostPath: |
| 54 | path: /etc/localtime |
Mandeep Khinda | 82c63d3 | 2017-08-21 16:04:37 -0400 | [diff] [blame] | 55 | - name: portalwidgets-application-properties |
mayank | c8f632c | 2018-01-21 10:08:25 +0000 | [diff] [blame] | 56 | configMap: |
| 57 | name: portal-onapwidgetms-configmap |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 58 | imagePullSecrets: |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 59 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
vasundhra | 6f62044 | 2017-11-22 12:26:25 +0000 | [diff] [blame] | 60 | #{{ end }} |