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: | ||||
22 | - containerPort: 8500 | ||||
23 | name: msb-consul | ||||
24 | readinessProbe: | ||||
25 | tcpSocket: | ||||
26 | port: 8500 | ||||
27 | initialDelaySeconds: 5 | ||||
28 | periodSeconds: 10 | ||||
29 | imagePullPolicy: "{{ .Values.pullPolicy }}" |