Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
43 views1 page

Kubernetes Master Code

The Kubernetes control-plane has initialized successfully. To start using the cluster, copy the admin configuration file and set the KUBECONFIG environment variable. A pod network also needs to be deployed before adding worker nodes.

Uploaded by

Đức Toàn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Kubernetes Master Code

The Kubernetes control-plane has initialized successfully. To start using the cluster, copy the admin configuration file and set the KUBECONFIG environment variable. A pod network also needs to be deployed before adding worker nodes.

Uploaded by

Đức Toàn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

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/

Then you can join any number of worker nodes by running the following on each as
root:

kubeadm join 172.16.68.156:6443 --token 63fsr4.9icpetdcy4mzkqze \


--discovery-token-ca-cert-hash
sha256:01e43c84373fee1f7b207559ee3a8cd53040df5ff446da83565f0d310f95102a

You might also like