HuabingZhao | fe67ad7 | 2017-08-29 11:09:49 +0800 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: msb-iag |
| 5 | spec: |
| 6 | replicas: 2 |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: msb-iag |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: msb-iag |
| 14 | name: msb-iag |
| 15 | spec: |
| 16 | hostname: msb-iag |
| 17 | containers: |
| 18 | - args: |
| 19 | image: nexus3.onap.org:10001/onap/msb/msb_apigateway |
| 20 | name: "msb-iag" |
| 21 | env: |
| 22 | - name: CONSUL_IP |
| 23 | value: "{{ .Values.consulClusterIP}}" |
| 24 | - name: SDCLIENT_IP |
| 25 | value: "{{ .Values.discoveryClusterIP}}" |
| 26 | - name: ROUTE_LABELS |
| 27 | value: "visualRange:1" |
| 28 | ports: |
| 29 | - containerPort: {{ .Values.iagPort }} |
| 30 | name: msb-iag |
| 31 | readinessProbe: |
| 32 | tcpSocket: |
| 33 | port: {{ .Values.iagPort }} |
| 34 | initialDelaySeconds: 5 |
| 35 | periodSeconds: 10 |
| 36 | imagePullPolicy: "{{ .Values.pullPolicy}}" |
| 37 | |
| 38 | |