HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: msb-eag |
HuabingZhao | 3f1a25e | 2017-09-02 14:45:28 +0800 | [diff] [blame] | 5 | namespace: "{{ .Values.nsPrefix }}-msb" |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 6 | spec: |
HuabingZhao | 77d44cd | 2017-08-30 09:30:03 +0800 | [diff] [blame] | 7 | replicas: {{ .Values.eagReplicas }} |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 8 | selector: |
| 9 | matchLabels: |
| 10 | app: msb-eag |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: msb-eag |
| 15 | name: msb-eag |
| 16 | spec: |
| 17 | hostname: msb-eag |
| 18 | containers: |
| 19 | - args: |
HuabingZhao | 14391b4 | 2017-09-02 14:38:07 +0800 | [diff] [blame] | 20 | image: {{ .Values.image.apigateway }} |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 21 | name: "msb-eag" |
| 22 | env: |
| 23 | - name: CONSUL_IP |
HuabingZhao | aac1c92 | 2017-09-09 15:59:00 +0800 | [diff] [blame] | 24 | value: msb-consul.{{ .Values.nsPrefix }}-msb |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 25 | - name: SDCLIENT_IP |
HuabingZhao | f51e10c | 2017-10-31 10:39:38 +0000 | [diff] [blame^] | 26 | value: msb-discovery.{{ .Values.nsPrefix }}-msb |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 27 | - name: ROUTE_LABELS |
| 28 | value: "visualRange:0" |
| 29 | ports: |
| 30 | - containerPort: {{ .Values.eagPort }} |
| 31 | name: msb-eag |
| 32 | readinessProbe: |
| 33 | tcpSocket: |
| 34 | port: {{ .Values.eagPort }} |
| 35 | initialDelaySeconds: 5 |
| 36 | periodSeconds: 10 |
HuabingZhao | 14391b4 | 2017-09-02 14:38:07 +0800 | [diff] [blame] | 37 | imagePullPolicy: {{ .Values.pullPolicy}} |
HuabingZhao | ba8f349 | 2017-09-09 10:17:20 +0800 | [diff] [blame] | 38 | imagePullSecrets: |
| 39 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 40 | |