Bootstrap CoreOS cluster via PXE in seconds
2.0K
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 - of client_ipetcd_discovery_token, etcd Discovery TokenTo 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
Content type
Image
Digest
sha256:07ad71254…
Size
236.4 MB
Last updated
almost 11 years ago
docker pull quanlong/coreos-pxe-installer