PS C:> kubeadm join –config “C:kkubeadm-config.yaml” –v=5
I0524 13:26:27.913386 11000 join.go:412] [preflight] found NodeName empty; using OS hostname as NodeName
I0524 13:26:27.935470 11000 joinconfiguration.go:76] loading configuration from “C:kkubeadm-config.yaml”
[preflight] Running pre-flight checks
I0524 13:26:27.943518 11000 preflight.go:93] [preflight] Running general checks
I0524 13:26:27.958835 11000 checks.go:280] validating the existence of file etckuberneteskubelet.conf
I0524 13:26:27.959047 11000 checks.go:280] validating the existence of file etckubernetesbootstrap-kubelet.conf
I0524 13:26:27.960456 11000 checks.go:104] validating the container runtime
I0524 13:26:28.043407 11000 checks.go:516] running all checks
I0524 13:26:28.572746 11000 checks.go:401] checking whether the given node name is valid and reachable using net.LookupHost
I0524 13:26:28.591227 11000 checks.go:605] validating kubelet version
I0524 13:26:28.743376 11000 checks.go:130] validating if the “kubelet” service is enabled and active
[WARNING Service-Kubelet]: kubelet service does not exist
I0524 13:26:28.749892 11000 checks.go:203] validating availability of port 10250
I0524 13:26:28.752763 11000 checks.go:280] validating the existence of file C:/etc/kubernetes/pki/ca.crt
I0524 13:26:28.752763 11000 checks.go:430] validating if the connectivity type is via proxy or direct
I0524 13:26:28.752763 11000 join.go:529] [preflight] Discovering cluster-info
I0524 13:26:28.755855 11000 token.go:80] [discovery] Created cluster-info discovery client, requesting info from “115.93.231.10:6443”
I0524 13:26:28.780126 11000 token.go:118] [discovery] Requesting info from “115.93.231.10:6443” again to validate TLS against the pinned public key
I0524 13:26:28.800512 11000 token.go:135] [discovery] Cluster info signature and contents are valid and TLS certificate validates against pinned roots, will use API Server “115.93.231.10:6443”
I0524 13:26:28.801490 11000 discovery.go:52] [discovery] Using provided TLSBootstrapToken as authentication credentials for the join process
I0524 13:26:28.803644 11000 join.go:543] [preflight] Fetching init configuration
I0524 13:26:28.805745 11000 join.go:589] [preflight] Retrieving KubeConfig objects
[preflight] Reading configuration from the cluster…
[preflight] FYI: You can look at this config file with ‘kubectl -n kube-system get cm kubeadm-config -o yaml’
kubeadm-config.yaml file:
apiVersion: kubeadm.k8s.io/v1beta3
kind: JoinConfiguration
discovery:
bootstrapToken:
apiServerEndpoint: “115.93.231.10:6443”
token: “gj9wtl.whgotr2xw2lwiehh”
caCertHashes:
– “sha256:7554b8051b01328d9bac5db097f37fca075c1ca13136901529991e9e7c1e8c12”
nodeRegistration:
criSocket: “npipe:////./pipe/containerd-containerd”
apiVersion: kubeadm.k8s.io/v1beta3
kind: ClusterConfiguration
kubernetesVersion: v1.28.10
controlPlaneEndpoint: “192.168.0.152:6443”
networking:
dnsDomain: “cluster.local”
serviceSubnet: “10.96.0.0/12”
podSubnet: “10.244.0.0/16”
apiServer:
extraArgs:
authorization-mode: “Node,RBAC”
I’m trying to join windows worker node with different network from master, opend port 6433,
everything seems woking fine except worker node cannot read cluster config from master
daniyyel is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.