yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame^] | 1 | #{{ if not .Values.disableMsbMsbIag }} |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: msb-iag |
HuabingZhao | 3f1a25e | 2017-09-02 14:45:28 +0800 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-msb" |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 7 | spec: |
HuabingZhao | 77d44cd | 2017-08-30 09:30:03 +0800 | [diff] [blame] | 8 | replicas: {{ .Values.iagReplicas }} |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 9 | selector: |
| 10 | matchLabels: |
| 11 | app: msb-iag |
| 12 | template: |
| 13 | metadata: |
| 14 | labels: |
| 15 | app: msb-iag |
| 16 | name: msb-iag |
| 17 | spec: |
| 18 | hostname: msb-iag |
| 19 | containers: |
| 20 | - args: |
HuabingZhao | 28f6d3b | 2017-09-19 21:37:38 -0400 | [diff] [blame] | 21 | image: {{ .Values.image.apigateway }} |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 22 | name: "msb-iag" |
| 23 | env: |
| 24 | - name: CONSUL_IP |
HuabingZhao | aac1c92 | 2017-09-09 15:59:00 +0800 | [diff] [blame] | 25 | value: msb-consul.{{ .Values.nsPrefix }}-msb |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 26 | - name: SDCLIENT_IP |
| 27 | value: "{{ .Values.discoveryClusterIP}}" |
| 28 | - name: ROUTE_LABELS |
| 29 | value: "visualRange:1" |
| 30 | ports: |
| 31 | - containerPort: {{ .Values.iagPort }} |
| 32 | name: msb-iag |
| 33 | readinessProbe: |
| 34 | tcpSocket: |
| 35 | port: {{ .Values.iagPort }} |
| 36 | initialDelaySeconds: 5 |
| 37 | periodSeconds: 10 |
| 38 | imagePullPolicy: "{{ .Values.pullPolicy}}" |
HuabingZhao | ba8f349 | 2017-09-09 10:17:20 +0800 | [diff] [blame] | 39 | imagePullSecrets: |
| 40 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame^] | 41 | #{{ end }} |