-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (40 loc) · 1.02 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
version: "3.2"
services:
etcd:
container_name: kube-etcd
image: quay.io/coreos/etcd:latest
ports:
- "2379"
- "2380"
networks:
- kubernetes
command: ["etcd", "--advertise-client-urls", "http://0.0.0.0:2379","--listen-client-urls", "http://0.0.0.0:2379"]
deploy:
restart_policy:
condition: always
#TODO: Start API server usingservice IP and pod IP blocks (--service-cluster-ip-range, --pod-ip-range)
api:
container_name: kube-api
image: gcr.io/google_containers/hyperkube-amd64:v1.10.2
ports:
- "80"
- "8080"
- "443"
networks:
- kubernetes
command: ["kube-apiserver", "--etcd-servers", "http://kube-etcd:2379"]
deploy:
restart_policy:
condition: always
#TODO:
# 1) Start Kubelet mounting docker socket
# 2) Start controller manager and other services
# 3) Generate and Volume mount the certs
networks:
kubernetes:
ipam:
driver: default
config:
- subnet: 172.200.0.0/16
volumes:
db-data: