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