
libvirt-coreos is a cluster provider for kubernetes that starts local VMs and runs kubernetes on it. Its goal is to provide a multi-machines environment to develop and test kubernetes. The purpose is mostly the same as the vagrant provider but with a big focus on efficiency. The vagrant cluster takes a long time to boot and consumes a huge amount of disk space. libvirt-coreos aims at being cheaper. As a consequence, libvirt-coreos allows to start bigger clusters with more minions than vagrant.
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
#cloud-config
|
|
|
|
coreos:
|
|
units:
|
|
- name: kubelet.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
After=opt-kubernetes.mount etcd.service docker.socket
|
|
ConditionFileIsExecutable=/opt/kubernetes/bin/kubelet
|
|
Description=Kubernetes Kubelet
|
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
|
Requires=opt-kubernetes.mount etcd.service docker.socket
|
|
|
|
[Service]
|
|
ExecStart=/opt/kubernetes/bin/kubelet \
|
|
--address=0.0.0.0 \
|
|
--hostname_override=192.168.10.$(($i+1)) \
|
|
--etcd_servers=http://127.0.0.1:4001
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
- name: kube-proxy.service
|
|
command: start
|
|
content: |
|
|
[Unit]
|
|
After=opt-kubernetes.mount etcd.service
|
|
ConditionFileIsExecutable=/opt/kubernetes/bin/kube-proxy
|
|
Description=Kubernetes Proxy
|
|
Documentation=https://github.com/GoogleCloudPlatform/kubernetes
|
|
Requires=opt-kubernetes.mount etcd.service
|
|
|
|
[Service]
|
|
ExecStart=/opt/kubernetes/bin/kube-proxy \
|
|
--etcd_servers=http://127.0.0.1:4001 \
|
|
--master=http://192.168.10.1:7080
|
|
Restart=always
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|