forked from jenkinsci/kubernetes-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
27 lines (26 loc) · 976 Bytes
/
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
# Docker Compose definition for a one node Kubernetes cluster
# Based on Docker Cookbook example
# https://github.com/how2dock/docbook/ch05/docker
etcd:
image: gcr.io/google_containers/etcd:2.0.12
net: "host"
command: /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data
master:
image: gcr.io/google_containers/hyperkube:v1.1.3
net: "host"
pid: "host"
privileged: true
volumes:
- /:/rootfs:ro
- /sys:/sys:ro
- /dev:/dev
- /var/lib/docker/:/var/lib/docker:ro
- /var/lib/kubelet/:/var/lib/kubelet:rw
- /var/run:/var/run:rw
- /var/run/docker.sock:/var/run/docker.sock
command: /hyperkube kubelet --containerized --hostname-override="127.0.0.1" --address="0.0.0.0" --api-servers=http://localhost:8080 --config=/etc/kubernetes/manifests
proxy:
image: gcr.io/google_containers/hyperkube:v1.1.3
net: "host"
privileged: true
command: /hyperkube proxy --master=http://127.0.0.1:8080 --v=2