blob: 24cb3a5f8c160b5ee4955b69ee1db81ea8adfc17 [file] [log] [blame]
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08001apiVersion: extensions/v1beta1
2kind: Deployment
3metadata:
4 name: msb-discovery
HuabingZhao3f1a25e2017-09-02 14:45:28 +08005 namespace: "{{ .Values.nsPrefix }}-msb"
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08006spec:
HuabingZhao77d44cd2017-08-30 09:30:03 +08007 replicas: {{ .Values.discoveryReplicas }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +08008 selector:
9 matchLabels:
10 app: msb-discovery
11 template:
12 metadata:
13 labels:
14 app: msb-discovery
15 name: msb-discovery
16 spec:
17 hostname: msb-discovery
18 containers:
19 - args:
HuabingZhao14391b42017-09-02 14:38:07 +080020 image: {{ .Values.image.discovery }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080021 name: "msb-discovery"
22 env:
23 - name: CONSUL_IP
24 value: "{{ .Values.consulClusterIP }}"
25 ports:
HuabingZhao4ea06552017-08-29 15:30:10 +080026 - containerPort: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080027 name: msb-discovery
28 readinessProbe:
29 tcpSocket:
HuabingZhao4ea06552017-08-29 15:30:10 +080030 port: {{ .Values.discoveryPort }}
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080031 initialDelaySeconds: 5
32 periodSeconds: 10
HuabingZhao14391b42017-09-02 14:38:07 +080033 imagePullPolicy: {{ .Values.pullPolicy }}
HuabingZhaoba8f3492017-09-09 10:17:20 +080034 imagePullSecrets:
35 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
HuabingZhaoc2b4fcf2017-08-29 10:48:25 +080036