blob: 18dbc67f86fc4139d05e6fdfe83f27fdfbcdb4b4 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsbMsbIag }}
HuabingZhaofe67ad72017-08-29 11:09:49 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: msb-iag
HuabingZhao3f1a25e2017-09-02 14:45:28 +08006 namespace: "{{ .Values.nsPrefix }}-msb"
HuabingZhaofe67ad72017-08-29 11:09:49 +08007spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08008 replicas: {{ .Values.iagReplicas }}
HuabingZhaofe67ad72017-08-29 11:09:49 +08009 selector:
10 matchLabels:
11 app: msb-iag
12 template:
13 metadata:
14 labels:
15 app: msb-iag
16 name: msb-iag
17 spec:
18 hostname: msb-iag
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-iag-readiness
HuabingZhaofe67ad72017-08-29 11:09:49 +080034 containers:
35 - args:
HuabingZhao28f6d3b2017-09-19 21:37:38 -040036 image: {{ .Values.image.apigateway }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080037 name: "msb-iag"
38 env:
39 - name: CONSUL_IP
HuabingZhaoaac1c922017-09-09 15:59:00 +080040 value: msb-consul.{{ .Values.nsPrefix }}-msb
HuabingZhaofe67ad72017-08-29 11:09:49 +080041 - name: SDCLIENT_IP
HuabingZhaof51e10c2017-10-31 10:39:38 +000042 value: msb-discovery.{{ .Values.nsPrefix }}-msb
HuabingZhaofe67ad72017-08-29 11:09:49 +080043 - name: ROUTE_LABELS
44 value: "visualRange:1"
45 ports:
46 - containerPort: {{ .Values.iagPort }}
47 name: msb-iag
48 readinessProbe:
49 tcpSocket:
50 port: {{ .Values.iagPort }}
51 initialDelaySeconds: 5
52 periodSeconds: 10
53 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 }}