-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
95 lines (89 loc) · 2.31 KB
/
docker-compose.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
kubelet:
labels:
io.rancher.container.dns: true
io.rancher.container.create_agent: true
io.rancher.container.agent.role: environment
io.rancher.scheduler.global: true
command:
- run-kubelet.sh
- master
- 8080
image: cjellick/k8s:dev
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /var/lib/rancher/kubernetes:/var/lib/rancher/kubernetes
net: host
pid: host
ipc: host
privileged: true
links:
- api-server:master
proxy:
labels:
io.rancher.container.dns: true
io.rancher.scheduler.global: true
command:
- kube-proxy
- --master=http://master:8080
- --v=2
- --healthz-bind-address=0.0.0.0
image: cjellick/k8s:dev
privileged: true
net: host
links:
- api-server:master
etcd:
command:
- /usr/local/bin/etcd
- --addr=127.0.0.1:4001
- --bind-addr=0.0.0.0:4001
- --data-dir=/var/etcd/data
image: gcr.io/google_containers/etcd:2.0.12
api-server:
labels:
io.rancher.container.create_agent: true
io.rancher.container.agent.role: environment
command:
- /usr/local/bin/kube-apiserver
- --service-cluster-ip-range=10.43.0.0/16
- --etcd-servers=http://etcd:4001
- --insecure-bind-address=0.0.0.0
- --insecure-port=8080
- --cloud-provider=rancher
image: cjellick/kube-apiserver:dev
ports:
- "8080:8080"
links:
- etcd
scheduler:
command:
- /usr/local/bin/kube-scheduler
- --master=http://master:8080
- --address=0.0.0.0
image: cjellick/kube-scheduler:dev
links:
- api-server:master
controller-manager:
command:
- /usr/local/bin/kube-controller-manager
- --master=http://master:8080
- --cloud-provider=rancher
- --address=0.0.0.0
image: cjellick/kube-controller-manager:dev
labels:
io.rancher.container.create_agent: true
io.rancher.container.agent.role: environment
links:
- api-server:master
rancher-agent:
labels:
io.rancher.container.create_agent: true
io.rancher.container.agent_service.labels_provider: true
environment:
KUBERNETES_URL: http://master:8080
image: cjellick/kubernetes-agent:dev
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
links:
- api-server:master