Welcome to the Linux Foundation Forum!

Worker node can't join

Hello,
The worker node gets a timeout when trying to join the cluster. The CP node seems up and running.
Here the worker output:

  1. Failed to request cluster-info, will try again:
  2. Get "https://k8scp:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s":
  3. x509: certificate is valid for dl-dt-03, kubernetes, kubernetes.default, kubernetes.default.svc,
  4. kubernetes.default.svc.cluster.local, not k8scp

Any idea what goes wrong? The full output is here: https://x0.at/M_i_.txt

Comments

  • On the CP node, the /etc/hosts file is:

    1. $ cat /etc/hosts
    2. 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    3. ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    4. 172.168.1.6 LN-TW-01.resuniv.lan LN-TW-01
    5. 172.168.1.7 HP-TW-01.resuniv.lan HP-TW-01
    6. 172.167.1.254 DL-DT-03.resuniv.lan DL-DT-03
    7. 172.167.1.254 k8scp

    there's a typo on the 167, I guess it was it

  • Fixed:

    1. # kubeadm reset
    2. # rm -rf /var/lib/etcd/
    3. # kubeadm init --config=kubeadm-config.yaml --upload-certs | tee kubeadm-init.out

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training