Build a k8s cluster on Fedora CoreOS.
This is an example. You do not need to follow the exact steps.
- Edit /bootstrap-example/ignition-master.fcc and fill in
{SOME_HOST_NAME}
and{SOME_SSH_KEY}
. - Upload this file to some publicly available URL.
- Fill in variable
fcc_file_url
in bootstrap.sh. - Run
sudo ./bootstrap.sh
on Fedora CoreOS live CD.
Once you're logged in to your server, clone this repo:
$ git clone https://github.com/fusoya59/fedora-coreos-k8s
Build the project:
$ cd fedora-coreos-k8s
$ sudo ./build-master.sh fusoya59
Deploy the files:
$ sudo ./deploy-master.sh fusoya59
Wait a minute or two for the entire process to bootstrap properly. After that install kubectl:
$ ./setup-kubectl.sh
Try getting the nodes in the cluster:
$ kubectl get nodes
Same steps. Clone repo:
$ git clone https://github.com/fusoya59/fedora-coreos-k8s
Build the project:
$ cd fedora-coreos-k8s
$ sudo ./build-worker.sh fusoya59 10.0.10.100
Deploy the files:
$ sudo ./deploy-worker.sh fusoya59 10.0.10.100
Log back into master. Check that the node was added:
$ kubectl get nodes