HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 1 | apiVersion: extensions/v1beta1 |
| 2 | kind: Deployment |
| 3 | metadata: |
| 4 | name: msb-consul |
| 5 | spec: |
| 6 | replicas: 1 |
| 7 | selector: |
| 8 | matchLabels: |
| 9 | app: msb-consul |
| 10 | template: |
| 11 | metadata: |
| 12 | labels: |
| 13 | app: msb-consul |
| 14 | name: msb-consul |
| 15 | spec: |
| 16 | hostname: msb-consul |
| 17 | containers: |
| 18 | - args: |
| 19 | image: consul |
| 20 | name: "msb-consul" |
| 21 | ports: |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame^] | 22 | - containerPort: {{ .Values.consulPort }} |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 23 | name: msb-consul |
| 24 | readinessProbe: |
| 25 | tcpSocket: |
HuabingZhao | 4ea0655 | 2017-08-29 15:30:10 +0800 | [diff] [blame^] | 26 | port: {{ .Values.consulPort }} |
HuabingZhao | f2a9f56 | 2017-08-26 11:49:59 +0800 | [diff] [blame] | 27 | initialDelaySeconds: 5 |
| 28 | periodSeconds: 10 |
| 29 | imagePullPolicy: "{{ .Values.pullPolicy }}" |