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