Bootstrap CoreOS cluster via PXE in seconds
docker run --net=host quanlong/coreos-pxe-installer
If you run docker under VM, make sure the VM's network is bridged to the network of your DHCP server. For vagrant, it's config.vm.network "public_network"
Use ENV INTERFACE
to customize your interface if it's not eth1 in your host
docker run --net=host -e INTERFACE=eth0 quanlong/coreos-pxe-installer
You can override /config dir to customize coreos-pxe-installer's behavior. To get started you can simply link via
docker run -v myconfig:/config quanlong/coreos-pxe-installer
The default configurations will installed under myconfig
dir, you can edit the default config to start quickly.
There are some template variables you can use in the configurations, coreos-pxe-installer will replace them to real value when provisioning.
server_ip
, current server ipv4 addressclient_ip
, current client ipv4 addressclient_ip_dash
, replace.
to-
ofclient_ip
etcd_discovery_token
, etcd Discovery Token
To add cloud config in initramfs, see https://coreos.com/docs/running-coreos/bare-metal/booting-with-pxe/
test cloud-config with coreos-cloudinit -validate
, see https://coreos.com/validate
vagrant for dev environment, link app/config
into container for quick debuging
vagrant up; vagrant ssh
cd /vagrant
docker build -t installer .
docker run -v /vagrant/app/config:/config --net=host installer