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