Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

worker node 2 is not working. #1

Open
davidshare opened this issue Sep 25, 2021 · 1 comment
Open

worker node 2 is not working. #1

davidshare opened this issue Sep 25, 2021 · 1 comment

Comments

@davidshare
Copy link

davidshare commented Sep 25, 2021

I followed the steps for setting up worker node 2 but I can't see the csr when I run kubectl get csr on the master.

I have confirmed the steps 3 times now.
https://github.com/ddometita/mmumshad-kubernetes-the-hard-way/blob/master/docs/10-tls-bootstrapping-kubernetes-workers.md

Please what could I be missing?

vagrant@master-1:~$ kubectl get csr
No resources found.

vagrant@worker-2:~$ sudo service kubelet status
● kubelet.service - Kubernetes Kubelet
   Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2021-09-25 08:13:16 UTC; 34s ago
     Docs: https://github.com/kubernetes/kubernetes
 Main PID: 23256 (kubelet)
    Tasks: 7 (limit: 546)
   CGroup: /system.slice/kubelet.service
           └─23256 /usr/local/bin/kubelet --bootstrap-kubeconfig=/var/lib/kubelet/bootstrap-kubeconfig --config=/var/lib/kubelet/kubelet-config.yaml --image-

Sep 25 08:13:30 worker-2 kubelet[23256]: I0925 08:13:30.384428   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:32 worker-2 kubelet[23256]: I0925 08:13:32.755796   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:34 worker-2 kubelet[23256]: I0925 08:13:34.879264   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:37 worker-2 kubelet[23256]: I0925 08:13:37.269063   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:39 worker-2 kubelet[23256]: I0925 08:13:39.292983   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:41 worker-2 kubelet[23256]: I0925 08:13:41.468494   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:43 worker-2 kubelet[23256]: I0925 08:13:43.684493   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:45 worker-2 kubelet[23256]: I0925 08:13:45.974190   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:48 worker-2 kubelet[23256]: I0925 08:13:48.260567   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
Sep 25 08:13:50 worker-2 kubelet[23256]: I0925 08:13:50.401201   23256 bootstrap.go:239] Failed to connect to apiserver: the server has asked for the client 
cat bootstrap-token-07401b.yaml
apiVersion: v1
kind: Secret
metadata:
  # Name MUST be of form "bootstrap-token-<token id>"
  name: bootstrap-token-07401b
  namespace: kube-system

# Type MUST be 'bootstrap.kubernetes.io/token'
type: bootstrap.kubernetes.io/token
stringData:
  # Human readable description. Optional.
  description: "The default bootstrap token generated by 'kubeadm init'."

  # Token ID and secret. Required.
  token-id: 07401b
  token-secret: f395accd246ae52d

  # Expiration. Optional.
  expiration: 2022-03-10T03:22:11Z

  # Allowed usages.
  usage-bootstrap-authentication: "true"
  usage-bootstrap-signing: "true"

  # Extra groups to authenticate the token as. Must start with "system:bootstrappers:"
  auth-extra-groups: system:bootstrappers:worker
@svissarapu
Copy link

@davidshare - Were you able to resolve this issue? I am facing the same issue. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants