-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathconsul-dep.yaml
47 lines (47 loc) · 1.06 KB
/
consul-dep.yaml
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
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: consul
spec:
replicas: 3
template:
metadata:
labels:
name: consul
spec:
containers:
- name: consul
image: consul:0.7.1
args:
- agent
- -ui
- -server
- -client=0.0.0.0
- -bootstrap-expect=3
env:
- name: CHECKPOINT_DISABLE
value: "1"
ports:
- name: server-noscrape
containerPort: 8300
- name: serf-noscrape
containerPort: 8301
- name: client-noscrape
containerPort: 8400
- name: http-noscrape
containerPort: 8500
- name: sidekick
image: weaveworks/consul-sidekick
args:
- --namespace=$(POD_NAMESPACE)
- --pod-name=$(POD_NAME)
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name