forked from apache/openwhisk-deploy-kube
-
Notifications
You must be signed in to change notification settings - Fork 1
/
consul.yml
79 lines (78 loc) · 1.89 KB
/
consul.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: consul
namespace: openwhisk
labels:
name: consul
spec:
replicas: 1
template:
metadata:
labels:
name: consul
spec:
restartPolicy: Always
volumes:
- name: dockersock
hostPath:
path: /var/run/docker.sock
- name: consulconf
configMap:
name: consul
containers:
- name: consul
imagePullPolicy: IfNotPresent
image: consul:v0.7.0
ports:
- name: server
protocol: TCP
containerPort: 8300
hostPort: 8300
- name: serflan-tcp
protocol: TCP
containerPort: 8301
hostPort: 8301
- name: serflan-udp
protocol: UDP
containerPort: 8301
hostPort: 8301
- name: serfwan-tcp
protocol: TCP
containerPort: 8302
hostPort: 8302
- name: serfwan-udp
protocol: UDP
containerPort: 8302
hostPort: 8302
- name: rpc
protocol: TCP
containerPort: 8400
hostPort: 8400
- name: http
protocol: TCP
containerPort: 8500
hostPort: 8500
- name: consuldns-tcp
protocol: TCP
containerPort: 8600
hostPort: 8600
- name: consuldns-udp
protocol: UDP
containerPort: 8600
hostPort: 8600
volumeMounts:
- name: consulconf
mountPath: "/consul/config/config.json"
- name: registrator
image: gliderlabs/registrator
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
args: [ "-ip", "$(MY_POD_IP)", "-resync", "2", "consul://$(MY_POD_IP):8500" ]
volumeMounts:
- name: dockersock
mountPath: "/tmp/docker.sock"