Install Kubernetes Cluster on CentOS (4) install and configure Kubernetes Compute Node node
Install and configure the compute node node that runs Kubernetes
Generate kubernets's warehouse configuration file # cat / dev/null | openssl dgst-sha256-hex | sed's / ^. * / /'
Then use kubeadm join to join, as an example:
Kubeadm join 10.167.11.153discovery-token-ca-cert-hash sha256:2cc3029123db737f234186636330e87b5510c173c669f513a9c0e0da395515b0 6443-token o4avtg.65ji6b778nyacw68-discovery-token-ca-cert-hash sha256:2cc3029123db737f234186636330e87b5510c173c669f513a9c0e0da395515b0
If the token fails, it needs to be regenerated. The command is as follows:
Kubeadm token create-- print-join-command [--ttl 0]
"--ttl 0" is optional, indicating the valid time of the token, and 0 means it is always valid. The result of the above command is the command required to join the cluster.
two。 Reset nod
If there is a problem with the initialization / calculation node join of the primary node or if you want to go back, use the following command to reset
# kubeadm reset
At the same time, use ip link delete to delete the corresponding network and restart the network