blob: 8a56a5f42083b9dd91be9866814e61e2a647a4b1 [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
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
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
BorislavG8bfc6cf2018-02-27 15:04:26 +000040 value: msb-consul.{{ .Values.nsPrefix }}
HuabingZhaofe67ad72017-08-29 11:09:49 +080041 - name: SDCLIENT_IP
BorislavG8bfc6cf2018-02-27 15:04:26 +000042 value: msb-discovery.{{ .Values.nsPrefix }}
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 }}