HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
2 | kind: Deployment | ||||
3 | metadata: | ||||
4 | name: msb-discovery | ||||
5 | spec: | ||||
6 | replicas: 2 | ||||
7 | 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: | ||||
25 | - containerPort: 10081 | ||||
26 | name: msb-discovery | ||||
27 | readinessProbe: | ||||
28 | tcpSocket: | ||||
29 | port: 10081 | ||||
30 | initialDelaySeconds: 5 | ||||
31 | periodSeconds: 10 | ||||
32 | imagePullPolicy: "{{ .Values.pullPolicy }}" | ||||
33 | |||||
34 |