mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
30 lines
869 B
YAML
30 lines
869 B
YAML
version: "3"
|
|
|
|
services:
|
|
|
|
pause:
|
|
ports:
|
|
- 8080:8080
|
|
image: k8s.gcr.io/pause
|
|
|
|
etcd:
|
|
network_mode: "service:pause"
|
|
image: k8s.gcr.io/etcd:3.4.9
|
|
command: etcd
|
|
|
|
kube-apiserver:
|
|
network_mode: "service:pause"
|
|
image: k8s.gcr.io/hyperkube:v1.18.8
|
|
command: kube-apiserver --etcd-servers http://127.0.0.1:2379 --address 0.0.0.0 --disable-admission-plugins=ServiceAccount --allow-privileged
|
|
|
|
kube-controller-manager:
|
|
network_mode: "service:pause"
|
|
image: k8s.gcr.io/hyperkube:v1.18.8
|
|
command: kube-controller-manager --master http://localhost:8080 --allocate-node-cidrs --cluster-cidr=10.CLUSTER.0.0/16
|
|
"Edit the CLUSTER placeholder first. Then, remove this line.":
|
|
|
|
kube-scheduler:
|
|
network_mode: "service:pause"
|
|
image: k8s.gcr.io/hyperkube:v1.18.8
|
|
command: kube-scheduler --master http://localhost:8080
|