blob: b54f3d1d200d45f9cd215ae288a44dc5571d276d [file] [log] [blame]
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: msb-discovery
5spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08006 replicas: {{ .Values.discoveryReplicas }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08007 selector:
8 matchLabels:
9 app: msb-discovery
10 template:
11 metadata:
12 labels:
13 app: msb-discovery
14 name: msb-discovery
15 spec:
16 hostname: msb-discovery
17 containers:
18 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080019 image: {{ .Values.image.discovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080020 name: "msb-discovery"
21 env:
22 - name: CONSUL_IP
23 value: "{{ .Values.consulClusterIP }}"
24 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080025 - containerPort: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080026 name: msb-discovery
27 readinessProbe:
28 tcpSocket:
HuabingZhao4ea06552017-08-29 15:30:10 +080029 port: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080030 initialDelaySeconds: 5
31 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080032 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080033
34