31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
Your Kubernetes control-plane has initialized successfully!
|
|
|
|
To start using your cluster, you need to run the following as a regular user:
|
|
|
|
mkdir -p $HOME/.kube
|
|
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
|
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
|
|
|
Alternatively, if you are the root user, you can run:
|
|
|
|
export KUBECONFIG=/etc/kubernetes/admin.conf
|
|
|
|
You should now deploy a pod network to the cluster.
|
|
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
|
|
https://kubernetes.io/docs/concepts/cluster-administration/addons/
|
|
|
|
You can now join any number of control-plane nodes running the following command on each as root:
|
|
|
|
kubeadm join 192.168.0.20:6443 --token 0xkqfe.jabbv1ti38pb5kcb \
|
|
--discovery-token-ca-cert-hash sha256:3f35741ffc7824dda6276c781cf279d689abe0798154c6789afefcebd4c4f0cb \
|
|
--control-plane --certificate-key 2f51db87d68e0f71bef56a5f1759d35d92361dbb8c2be5ec3ae653c68096e4d8
|
|
|
|
Please note that the certificate-key gives access to cluster sensitive data, keep it secret!
|
|
As a safeguard, uploaded-certs will be deleted in two hours; If necessary, you can use
|
|
"kubeadm init phase upload-certs --upload-certs" to reload certs afterward.
|
|
|
|
Then you can join any number of worker nodes by running the following on each as root:
|
|
|
|
kubeadm join 192.168.0.20:6443 --token 0xkqfe.jabbv1ti38pb5kcb \
|
|
--discovery-token-ca-cert-hash sha256:3f35741ffc7824dda6276c781cf279d689abe0798154c6789afefcebd4c4f0cb
|