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 |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 6 | namespace: "{{ .Values.nsPrefix }}" |
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 |
Huabing Zhao | 097f681 | 2018-02-09 08:21:38 +0000 | [diff] [blame] | 19 | initContainers: |
| 20 | - command: |
| 21 | - /root/ready.py |
| 22 | args: |
| 23 | - --container-name |
| 24 | - msb-discovery |
| 25 | env: |
| 26 | - name: NAMESPACE |
| 27 | valueFrom: |
| 28 | fieldRef: |
| 29 | apiVersion: v1 |
| 30 | fieldPath: metadata.namespace |
| 31 | image: {{ .Values.image.readiness }} |
| 32 | imagePullPolicy: {{ .Values.pullPolicy }} |
| 33 | name: msb-iag-readiness |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 34 | containers: |
| 35 | - args: |
HuabingZhao | 28f6d3b | 2017-09-19 21:37:38 -0400 | [diff] [blame] | 36 | image: {{ .Values.image.apigateway }} |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 37 | name: "msb-iag" |
| 38 | env: |
| 39 | - name: CONSUL_IP |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 40 | value: msb-consul.{{ .Values.nsPrefix }} |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 41 | - name: SDCLIENT_IP |
BorislavG | 8bfc6cf | 2018-02-27 15:04:26 +0000 | [diff] [blame^] | 42 | value: msb-discovery.{{ .Values.nsPrefix }} |
HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 43 | - name: ROUTE_LABELS |
| 44 | value: "visualRange:1" |
| 45 | ports: |
| 46 | - containerPort: {{ .Values.iagPort }} |
| 47 | name: msb-iag |
| 48 | readinessProbe: |
| 49 | tcpSocket: |
| 50 | port: {{ .Values.iagPort }} |
| 51 | initialDelaySeconds: 5 |
| 52 | periodSeconds: 10 |
| 53 | imagePullPolicy: "{{ .Values.pullPolicy}}" |
HuabingZhao | ba8f349 | 2017-09-09 10:17:20 +0800 | [diff] [blame] | 54 | imagePullSecrets: |
| 55 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
Huabing Zhao | 097f681 | 2018-02-09 08:21:38 +0000 | [diff] [blame] | 56 | #{{ end }} |