Files
kubernetes/Clusterkey.txt
2025-07-28 10:59:42 +02:00

32 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 fukd6o.hwjap7wtnggqnvb0 \
--discovery-token-ca-cert-hash sha256:fb3b5db4e4df1a7be1eb4baf9afc7dc71c4dc6e26d6cf92e5bed6d4c6514bf72 \
--control-plane --certificate-key ac7755c7662c3b0ab865e3d91351a4096c7b9f0e73f0272a5e510f213fbdedce
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 fukd6o.hwjap7wtnggqnvb0 \
--discovery-token-ca-cert-hash sha256:fb3b5db4e4df1a7be1eb4baf9afc7dc71c4dc6e26d6cf92e5bed6d4c6514bf72