You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: