blob: c4697baeed2b5f826643d90f20c73d5b830f91c6 [file] [log] [blame]
HuabingZhao4ea06552017-08-29 15:30:10 +08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: msb-eag
5spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08006 replicas: {{ .Values.eagReplicas }}
HuabingZhao4ea06552017-08-29 15:30:10 +08007 selector:
8 matchLabels:
9 app: msb-eag
10 template:
11 metadata:
12 labels:
13 app: msb-eag
14 name: msb-eag
15 spec:
16 hostname: msb-eag
17 containers:
18 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080019 image: {{ .Values.image.apigateway }}
HuabingZhao4ea06552017-08-29 15:30:10 +080020 name: "msb-eag"
21 env:
22 - name: CONSUL_IP
23 value: "{{ .Values.consulClusterIP}}"
24 - name: SDCLIENT_IP
25 value: "{{ .Values.discoveryClusterIP}}"
26 - name: ROUTE_LABELS
27 value: "visualRange:0"
28 ports:
29 - containerPort: {{ .Values.eagPort }}
30 name: msb-eag
31 readinessProbe:
32 tcpSocket:
33 port: {{ .Values.eagPort }}
34 initialDelaySeconds: 5
35 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080036 imagePullPolicy: {{ .Values.pullPolicy}}
HuabingZhao4ea06552017-08-29 15:30:10 +080037
38