yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableVfcVfcWorkflow }} |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: vfc-workflow |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}" |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 7 | spec: |
| 8 | replicas: {{ .Values.workflow.replicas }} |
| 9 | selector: |
| 10 | matchLabels: |
| 11 | app: vfc-workflow |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: vfc-workflow |
| 16 | name: vfc-workflow |
| 17 | spec: |
| 18 | hostname: vfc-workflow |
| 19 | containers: |
| 20 | - args: |
| 21 | image: {{.Values.workflow.image}} |
| 22 | name: "vfc-workflow" |
| 23 | env: |
Alexis de Talhouët | ed6bd73 | 2017-11-28 14:59:30 -0500 | [diff] [blame] | 24 | - name: SERVICE_IP |
| 25 | valueFrom: |
| 26 | fieldRef: |
| 27 | fieldPath: status.podIP |
| 28 | - name: SERVICE_PORT |
| 29 | value: "{{ .Values.workflow.port }}" |
| 30 | - name: OPENPALETTE_MSB_IP |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 31 | value: msb-iag.{{ .Values.nsPrefix }} |
Alexis de Talhouët | ed6bd73 | 2017-11-28 14:59:30 -0500 | [diff] [blame] | 32 | - name: OPENPALETTE_MSB_PORT |
| 33 | value: "80" |
maopengzhang | 799cc59 | 2017-09-01 09:37:48 +0800 | [diff] [blame] | 34 | ports: |
| 35 | - containerPort: {{ .Values.workflow.port }} |
| 36 | readinessProbe: |
| 37 | tcpSocket: |
| 38 | port: {{ .Values.workflow.port }} |
| 39 | initialDelaySeconds: 5 |
| 40 | periodSeconds: 10 |
| 41 | imagePullPolicy: "{{ .Values.pullPolicy }}" |
| 42 | imagePullSecrets: |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 43 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame] | 44 | #{{ end }} |