== Master node from scratch Kubernetes and pre-requisites ==
* Install Kubernetes on Ubuntu 18.04. Assuming version 1.14.2 is pulled, check how to fix version.
<syntaxhighlight lang="bash">
</syntaxhighlight>
* Set up other pre-requisites:** Reconfigure docker runtime. Edit /etc/docker/daemon.json as follows:
<syntaxhighlight lang="bash">
{
}
</syntaxhighlight>
** Restart docker daemon:
<syntaxhighlight lang="bash">
> mkdir -p /etc/systemd/system/docker.service.d
</syntaxhighlight>
** Make sure swap is off
<syntaxhighlight lang="bash">
> sudo swapoff -a
Check /etc/fstab if swap is still configured there, delete if this is the case.
* == Create cluster configuration scripts.==
<syntaxhighlight lang="bash">
> cd init/templates
This will generate the init config from the config template and store it in /home/kubernetes/clusters/ccu.
* == Spin up the master node.==
Use kubeadm with the generated config to initialize the control plane.
> sudo kubeadm init --config kubeadm-init-config.yaml
</syntaxhighlight>
If this fails at any point, use kubeadm reset after problems have been fixed before trying to re-initialize.