-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (89 loc) · 2.38 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
etcd:
command: >
--advertise-client-urls http://127.0.0.1:2379
--data-dir /var/lib/etcd
--listen-client-urls http://127.0.0.1:2379
--listen-peer-urls http://127.0.0.1:2380
--name etcd0
image: "quay.io/coreos/etcd:v2.0.11"
net: "host"
restart: "always"
volumes:
- "/var/lib/etcd:/var/lib/etcd"
- "/usr/share/ca-certificates/:/etc/ssl/certs"
apiserver:
command: >
--etcd-servers=http://127.0.0.1:2379
--insecure-bind-address=0.0.0.0
--insecure-port=8080
--logtostderr=true
--service-cluster-ip-range=10.200.20.0/24
--v=2
image: "quay.io/kelseyhightower/kube-apiserver:0.19.0"
net: "host"
restart: "always"
volumes:
- "/etc/kubernetes:/etc/kubernetes"
- "/usr/share/ca-certificates:/etc/ssl/certs"
- "/var/run/kubernetes:/var/run/kubernetes"
controllermanager:
command: >
--logtostderr=true
--master=http://127.0.0.1:8080
--v=2
image: "quay.io/kelseyhightower/kube-controller-manager:0.19.0"
net: "host"
restart: "always"
volumes:
- "/etc/kubernetes:/etc/kubernetes"
- "/usr/share/ca-certificates:/etc/ssl/certs"
scheduler:
command: >
--logtostderr=true
--master=http://127.0.0.1:8080
--v=2
image: "quay.io/kelseyhightower/kube-scheduler:0.19.0"
net: "host"
restart: "always"
volumes:
- "/etc/kubernetes:/etc/kubernetes"
- "/usr/share/ca-certificates:/etc/ssl/certs"
kubelet:
command: >
--address=0.0.0.0
--api-servers=http://localhost:8080
--containerized
--enable-server
--hostname-override=127.0.0.1
--machine-id-file=/rootfs/etc/machine-id
--v=2
image: "quay.io/kelseyhightower/kubelet:0.19.0"
net: "host"
privileged: true
restart: "always"
volumes:
- "/usr/bin/nsenter:/nsenter"
- "/usr:/usr"
- "/lib64:/lib64"
- "/:/rootfs:ro"
- "/etc/kubernetes:/etc/kubernetes"
- "/etc/os-release:/etc/os-release"
- "/usr/share/ca-certificates/:/etc/ssl/certs"
- "/sys:/sys:ro"
- "/var/lib/docker/:/var/lib/docker:ro"
- "/var/lib/kubelet/:/var/lib/kubelet:rw"
- "/var/run:/var/run:rw"
proxy:
command: >
--logtostderr=true
--master=http://127.0.0.1:8080
--v=2
image: "quay.io/kelseyhightower/kube-proxy:0.19.0"
net: "host"
privileged: true
restart: "always"
volumes:
- "/etc/kubernetes:/etc/kubernetes"
- "/usr/share/ca-certificates:/etc/ssl/certs"
- "/usr:/usr"
- "/lib64:/lib64"