blob: 10cbbe115d64dde54a486ba7d1953a894dd52986 [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
Huabing Zhao097f6812018-02-09 08:21:38 +000019 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-eag-readiness
HuabingZhao4ea06552017-08-29 15:30:10 +080034 containers:
35 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080036 image: {{ .Values.image.apigateway }}
HuabingZhao4ea06552017-08-29 15:30:10 +080037 name: "msb-eag"
38 env:
39 - name: CONSUL_IP
HuabingZhaoaac1c922017-09-09 15:59:00 +080040 value: msb-consul.{{ .Values.nsPrefix }}-msb
HuabingZhao4ea06552017-08-29 15:30:10 +080041 - name: SDCLIENT_IP
HuabingZhaof51e10c2017-10-31 10:39:38 +000042 value: msb-discovery.{{ .Values.nsPrefix }}-msb
HuabingZhao4ea06552017-08-29 15:30:10 +080043 - name: ROUTE_LABELS
44 value: "visualRange:0"
45 ports:
46 - containerPort: {{ .Values.eagPort }}
47 name: msb-eag
48 readinessProbe:
49 tcpSocket:
50 port: {{ .Values.eagPort }}
51 initialDelaySeconds: 5
52 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080053 imagePullPolicy: {{ .Values.pullPolicy}}
HuabingZhaoba8f3492017-09-09 10:17:20 +080054 imagePullSecrets:
55 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
Huabing Zhao097f6812018-02-09 08:21:38 +000056#{{ end }}