Creating our cluster
With the Kubernetes daemon (installed and ran by minikube
) and the Kubernetes client (kubectl
) installed, we can now run minikube start
to create and start our cluster. We'd need to pass in --vm-driver=none
as we are not using a VM.
Note
If you are using a VM, remember to use the correct --vm-driver
flag.
We need to run the minikube start
command as root
because the kubeadm
and kubelet
binaries need to be downloaded and moved to /usr/local/bin
, which requires root privileges.
However, this usually means that all the files created and written during the installation and initiation process will be owned by root
. This makes it hard for a normal user to modify configuration files.
Fortunately, Kubernetes provides several environment variables that we can set to change this.
Setting environment variables for the local cluster
Inside .profile
(or its equivalents, such as .bash_profile
or .bashrc
), add the following lines at the end:
export MINIKUBE_WANTUPDATENOTIFICATION=false export...