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: |
HuabingZhao | 77d44cd | 2017-08-30 09:30:03 +0800 | [diff] [blame] | 6 | replicas: {{ .Values.discoveryReplicas }} |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 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: |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 25 | - containerPort: {{ .Values.discoveryPort }} |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 26 | name: msb-discovery |
| 27 | readinessProbe: |
| 28 | tcpSocket: |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame] | 29 | port: {{ .Values.discoveryPort }} |
HuabingZhao | c2b4fcf | 2017-08-29 10:48:25 +0800 | [diff] [blame] | 30 | initialDelaySeconds: 5 |
| 31 | periodSeconds: 10 |
| 32 | imagePullPolicy: "{{ .Values.pullPolicy }}" |
| 33 | |
| 34 | |