blob: 7d7586c5f6ff4bf3fe4083635bc82661b8f4681a [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsbMsbConsul }}
HuabingZhaof2a9f562017-08-26 11:49:59 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: msb-consul
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
HuabingZhaof2a9f562017-08-26 11:49:59 +08007spec:
vaibhav_16dec425f0ed2018-02-16 07:15:59 +00008 replicas: {{ .Values.msbConsulReplicas }}
HuabingZhaof2a9f562017-08-26 11:49:59 +08009 selector:
10 matchLabels:
11 app: msb-consul
12 template:
13 metadata:
14 labels:
15 app: msb-consul
16 name: msb-consul
17 spec:
18 hostname: msb-consul
19 containers:
20 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080021 image: {{ .Values.image.consul }}
22 name: msb-consul
HuabingZhaof2a9f562017-08-26 11:49:59 +080023 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080024 - containerPort: {{ .Values.consulPort }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080025 name: msb-consul
26 readinessProbe:
27 tcpSocket:
HuabingZhao4ea06552017-08-29 15:30:10 +080028 port: {{ .Values.consulPort }}
HuabingZhaof2a9f562017-08-26 11:49:59 +080029 initialDelaySeconds: 5
30 periodSeconds: 10
yurynfcef9942017-10-26 17:10:50 +030031 imagePullPolicy: {{ .Values.pullPolicy }}
vaibhav_16dec425f0ed2018-02-16 07:15:59 +000032#{{ end }}