blob: db703d91881e257238de220acc0476b205b27883 [file] [log] [blame]
HuabingZhao4ea06552017-08-29 15:30:10 +08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: msb-eag
HuabingZhao3f1a25e2017-09-02 14:45:28 +08005 namespace: "{{ .Values.nsPrefix }}-msb"
HuabingZhao4ea06552017-08-29 15:30:10 +08006spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08007 replicas: {{ .Values.eagReplicas }}
HuabingZhao4ea06552017-08-29 15:30:10 +08008 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:
HuabingZhao14391b42017-09-02 14:38:07 +080020 image: {{ .Values.image.apigateway }}
HuabingZhao4ea06552017-08-29 15:30:10 +080021 name: "msb-eag"
22 env:
23 - name: CONSUL_IP
HuabingZhaoaac1c922017-09-09 15:59:00 +080024 value: msb-consul.{{ .Values.nsPrefix }}-msb
HuabingZhao4ea06552017-08-29 15:30:10 +080025 - name: SDCLIENT_IP
26 value: "{{ .Values.discoveryClusterIP}}"
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
HuabingZhao14391b42017-09-02 14:38:07 +080037 imagePullPolicy: {{ .Values.pullPolicy}}
HuabingZhaoba8f3492017-09-09 10:17:20 +080038 imagePullSecrets:
39 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
HuabingZhao4ea06552017-08-29 15:30:10 +080040