kubeone
kubeone copied to clipboard
[aws] Error in task "Building Kubernetes clientset..."
What happened?
While trying to set up my first cluster an error occurred:
INFO[17:36:51 CEST] Running kubeadm preflight checks...
INFO[17:36:51 CEST] preflight... node=172.31.179.74
INFO[17:36:51 CEST] preflight... node=172.31.177.218
INFO[17:36:51 CEST] preflight... node=172.31.178.187
INFO[17:37:09 CEST] Pre-pull images node=172.31.179.74
INFO[17:37:09 CEST] Pre-pull images node=172.31.178.187
INFO[17:37:09 CEST] Pre-pull images node=172.31.177.218
INFO[17:37:11 CEST] Configuring certs and etcd on control plane node...
INFO[17:37:11 CEST] Ensuring Certificates... node=172.31.177.218
INFO[17:37:13 CEST] Downloading PKI...
INFO[17:37:13 CEST] Creating local backup... node=172.31.177.218
INFO[17:37:13 CEST] Uploading PKI...
INFO[17:37:15 CEST] Configuring certs and etcd on consecutive control plane node...
INFO[17:37:15 CEST] Ensuring Certificates... node=172.31.179.74
INFO[17:37:15 CEST] Ensuring Certificates... node=172.31.178.187
INFO[17:37:17 CEST] Initializing Kubernetes on leader...
INFO[17:37:17 CEST] Running kubeadm... node=172.31.177.218
INFO[17:38:08 CEST] Building Kubernetes clientset...
WARN[17:38:08 CEST] Task failed, error was: kubernetes: building dynamic kubernetes client
Get "https://kubeone-cluster-api-lb-153808776.eu-central-1.elb.amazonaws.com:6443/api?timeout=32s": proxyconnect tcp: ssh: tunneling
connection to: 127.0.0.1:8118
ssh: rejected: connect failed (Connection refused)
WARN[17:38:18 CEST] Retrying task...
INFO[17:38:18 CEST] Building Kubernetes clientset...
WARN[17:38:19 CEST] Task failed, error was: kubernetes: building dynamic kubernetes client
Get "https://kubeone-cluster-api-lb-153808776.eu-central-1.elb.amazonaws.com:6443/api?timeout=32s": proxyconnect tcp: ssh: tunneling
connection to: 127.0.0.1:8118
ssh: rejected: connect failed (Connection refused)
Expected behavior
The cluster gets initialized properly.
How to reproduce the issue?
- follow the documentation at https://docs.kubermatic.com/kubeone/v1.7/tutorials/creating-clusters/
What KubeOne version are you using?
$ kubeone version
{
"kubeone": {
"major": "1",
"minor": "7",
"gitVersion": "1.7.0",
"gitCommit": "1195366fd0cf11f314d194a3b29b6a782afde9a8",
"gitTreeState": "",
"buildDate": "2023-09-08T14:02:33Z",
"goVersion": "go1.20.5",
"compiler": "gc",
"platform": "linux/amd64"
},
"machine_controller": {
"major": "1",
"minor": "57",
"gitVersion": "v1.57.3",
"gitCommit": "",
"gitTreeState": "",
"buildDate": "",
"goVersion": "",
"compiler": "",
"platform": "linux/amd64"
}
}
Provide your KubeOneCluster manifest here (if applicable)
apiVersion: kubeone.k8c.io/v1beta2
kind: KubeOneCluster
versions:
kubernetes: "1.27.5"
cloudProvider:
aws: {}
external: true
What cloud provider are you running on?
AWS
What operating system are you running in your cluster?
Amazon Linux
Additional information
In the AWS console I can see that the load balancer it tries to access is taken offline, since it is unhealthy due to 2 nodes not being in-service: