

按照上面的提示,执行下面的命令: mkdir -p $HOME/.kubesudo cp -i /etc/kubernetes/nf $HOME/.kube/configsudo chown $(id -u ): $(id -g ) $HOME/.kube/config yaml" with one of the options listed at: you can join any number of worker nodes by running the following on each as root:kubeadm join 192.168.153.21:6443 -token c0wcm5.0yu9szfktsxvurza \ -discovery-token-ca-cert-hash sha256:f3cf8d3ccd735c39b8e941343f113cd4eb045a70298db818a3fe918dd164e379 docker ]$

Please see -upload-certs Marking the node as control-plane by adding the labels: Marking the node as control-plane by adding the taints Using token: c0wcm5.0yu9szfktsxvurza Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles configured RBAC rules to allow Node Bootstrap tokens to get nodes configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token configured RBAC rules to allow certificate rotation for all node client certificates in the cluster Creating the "cluster-info" ConfigMap in the "kube-public" namespace Updating "/etc/kubernetes/nf" to point to a rotatable kubelet client certificate and key Applied essential addon: CoreDNS Applied essential addon: kube-proxyYour 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/nf $HOME/.kube/config sudo chown $(id -u ): $(id -g ) $HOME/.kube/configAlternatively, if you are the root user, you can run: export KUBECONFIG =/etc/kubernetes/nfYou should now deploy a pod network to the cluster.Run "kubectl apply -f.
#Kubeadm centos minimal upgrade
Kubeadm upgrade will handle this transition transparently.

Once the UnversionedKubeletConfigMap feature gate graduates to Beta the default name will become just "kubelet-config". This can take up to 4m0s All control plane components are healthy after 6.503693 seconds Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace Creating a ConfigMap "kubelet-config-1.23" in namespace kube-system with the configuration for the kubelets in the clusterNOTE: The "kubelet-config-1.23" naming of the kubelet ConfigMap is deprecated.
#Kubeadm centos minimal password
执行效果: docker ]$ sudo kubeadm init \ > -image-repository /google_containers \ > -pod-network-cidr 10.244.0.0/16 \ > -kubernetes-version stable-1.23 password for k8s: Using Kubernetes version: v1.23.5 Running pre-flight checks Pulling images required for setting up a Kubernetes cluster This might take a minute or two, depending on the speed of your internet connection You can also perform this action in beforehand using 'kubeadm config images pull' Using certificateDir folder "/etc/kubernetes/pki" Generating "ca" certificate and key Generating "apiserver" certificate and key apiserver serving cert is signed for DNS names and IPs Generating "apiserver-kubelet-client" certificate and key Generating "front-proxy-ca" certificate and key Generating "front-proxy-client" certificate and key Generating "etcd/ca" certificate and key Generating "etcd/server" certificate and key etcd/server serving cert is signed for DNS names and IPs Generating "etcd/peer" certificate and key etcd/peer serving cert is signed for DNS names and IPs Generating "etcd/healthcheck-client" certificate and key Generating "apiserver-etcd-client" certificate and key Generating "sa" key and public key Using kubeconfig folder "/etc/kubernetes" Writing "nf" kubeconfig file Writing "nf" kubeconfig file Writing "nf" kubeconfig file Writing "nf" kubeconfig file Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" Starting the kubelet Using manifest folder "/etc/kubernetes/manifests" Creating static Pod manifest for "kube-apiserver" Creating static Pod manifest for "kube-controller-manager" Creating static Pod manifest for "kube-scheduler" Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests" Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". 在 node1 节点执行下面的命令: sudo kubeadm init \ - image-repository /google_containers \ - pod-network-cidr 10.244.0.0/16 \ - kubernetes-version stable-1.23
#Kubeadm centos minimal install
使用 VMware Workstation 16 Pro 创建三台虚拟机。 主机名ġ、关闭防火墙 systemctl stop firewalldsystemctl disable firewalldĢ、同步时间 yum -y install ntpdatentpdate
