blob: 5f8db61ac5c298e518174ec44e8a6dcae2076bd8 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableMsbMsbDiscovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: msb-discovery
HuabingZhao3f1a25e2017-09-02 14:45:28 +08006 namespace: "{{ .Values.nsPrefix }}-msb"
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08007spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08008 replicas: {{ .Values.discoveryReplicas }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08009 selector:
10 matchLabels:
11 app: msb-discovery
12 template:
13 metadata:
14 labels:
15 app: msb-discovery
16 name: msb-discovery
17 spec:
18 hostname: msb-discovery
19 containers:
20 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080021 image: {{ .Values.image.discovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080022 name: "msb-discovery"
23 env:
24 - name: CONSUL_IP
HuabingZhaoaac1c922017-09-09 15:59:00 +080025 value: msb-consul.{{ .Values.nsPrefix }}-msb
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080026 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080027 - containerPort: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080028 name: msb-discovery
29 readinessProbe:
30 tcpSocket:
HuabingZhao4ea06552017-08-29 15:30:10 +080031 port: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080032 initialDelaySeconds: 5
33 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080034 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhaoba8f3492017-09-09 10:17:20 +080035 imagePullSecrets:
36 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
yurynfcef9942017-10-26 17:10:50 +030037#{{ end }}