-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
50 lines (48 loc) · 1.26 KB
/
docker-compose.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
48
49
50
---
version: "3"
services:
etcd:
image: gcr.io/google_containers/etcd-amd64:3.1.11
command:
- etcd
- --listen-client-urls=http://0.0.0.0:2379
- --advertise-client-urls=http://127.0.0.1:2379
- --data-dir=/var/lib/etcd
networks:
- sandwich
volumes:
- etcd:/var/lib/etcd
kube-api:
image: gcr.io/google_containers/hyperkube-amd64:v1.9.2
command:
- kube-apiserver
- --etcd-servers=http://etcd:2379
- --service-cluster-ip-range=10.96.0.0/16
- --admission-control=Initializers,NamespaceExists,NamespaceLifecycle
- --insecure-bind-address=0.0.0.0
- --anonymous-auth=true
networks:
- sandwich
ports:
- "8081:8080"
# Controller manager is needed to run the namespace lifecycle
kube-controller-manager:
image: gcr.io/google_containers/kube-controller-manager-amd64:v1.9.2
command:
- kube-controller-manager
- --controllers=*,tokencleaner # TODO: figure out what controllers we actually need
- --address=127.0.0.1
- --master=http://kube-api:8080
networks:
- sandwich
# Redis to do cache stuffs
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- sandwich
networks:
sandwich:
volumes:
etcd: