blob: 0fcd2f9ba935c1cd38d2f351895e7c1bacdb1755 [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:
19 image: nexus3.onap.org:10001/onap/msb/msb_discovery
20 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
32 imagePullPolicy: "{{ .Values.pullPolicy }}"
33
34