blob: 714f19b1a51dc8df66f7b1fbbc64519aa90712cc [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsbMsbEag }}
HuabingZhao4ea06552017-08-29 15:30:10 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: msb-eag
HuabingZhao3f1a25e2017-09-02 14:45:28 +08006 namespace: "{{ .Values.nsPrefix }}-msb"
HuabingZhao4ea06552017-08-29 15:30:10 +08007spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08008 replicas: {{ .Values.eagReplicas }}
HuabingZhao4ea06552017-08-29 15:30:10 +08009 selector:
10 matchLabels:
11 app: msb-eag
12 template:
13 metadata:
14 labels:
15 app: msb-eag
16 name: msb-eag
17 spec:
18 hostname: msb-eag
19 containers:
20 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080021 image: {{ .Values.image.apigateway }}
HuabingZhao4ea06552017-08-29 15:30:10 +080022 name: "msb-eag"
23 env:
24 - name: CONSUL_IP
HuabingZhaoaac1c922017-09-09 15:59:00 +080025 value: msb-consul.{{ .Values.nsPrefix }}-msb
HuabingZhao4ea06552017-08-29 15:30:10 +080026 - name: SDCLIENT_IP
HuabingZhaof51e10c2017-10-31 10:39:38 +000027 value: msb-discovery.{{ .Values.nsPrefix }}-msb
HuabingZhao4ea06552017-08-29 15:30:10 +080028 - name: ROUTE_LABELS
29 value: "visualRange:0"
30 ports:
31 - containerPort: {{ .Values.eagPort }}
32 name: msb-eag
33 readinessProbe:
34 tcpSocket:
35 port: {{ .Values.eagPort }}
36 initialDelaySeconds: 5
37 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080038 imagePullPolicy: {{ .Values.pullPolicy}}
HuabingZhaoba8f3492017-09-09 10:17:20 +080039 imagePullSecrets:
40 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030041#{{ end }}