Kubesphere

发布时间 2023-04-09 01:04:58作者: 文采杰出
  • 使用kubeKey创建kubernetes成功:
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 by copying certificate authorities
and service account keys on each node and then running the following as root:

  kubeadm join lb.kubesphere.local:6443 --token 2fo0jr.0i9uehj3ax07pvnn \
	--discovery-token-ca-cert-hash sha256:9bc413cb71c3819e5c6bc74df237e9f8442b97414640336ab8e87572c884fe48 \
	--control-plane 

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

kubeadm join lb.kubesphere.local:6443 --token 2fo0jr.0i9uehj3ax07pvnn \
	--discovery-token-ca-cert-hash sha256:9bc413cb71c3819e5c6bc74df237e9f8442b97414640336ab8e87572c884fe48