Skip to content

Instantly share code, notes, and snippets.

@debuggerboy
Created April 3, 2022 11:48
Show Gist options
  • Save debuggerboy/e7ec918dd984cdbe9e8c1963393d2fe2 to your computer and use it in GitHub Desktop.
Save debuggerboy/e7ec918dd984cdbe9e8c1963393d2fe2 to your computer and use it in GitHub Desktop.
kind-sigs podman cluster error

Issue

Kind-Sigs on Debian GNU/Linux 11 fails to create kind cluster on Podman

Environment

Kernel Version

Linux cassandra 5.10.0-12-amd64 #1 SMP Debian 5.10.103-1 (2022-03-07) x86_64 GNU/Linux

OS Version

debuggerboy@cassandra:~$ lsb_release -a
No LSB modules are available.
Distributor ID:	Debian
Description:	Debian GNU/Linux 11 (bullseye)
Release:	11
Codename:	bullseye

Podman Version

Version:      3.0.1
API Version:  3.0.0
Go Version:   go1.15.9
Built:        Thu Jan  1 05:30:00 1970
OS/Arch:      linux/amd64

Kind Version

kind v0.12.0 go1.17.8 linux/amd64

Error Details

Please find the kind-sigs-cluster-creation-error.txt file attached below.

Fix

Copy the podman-fix-for-cluster-fail.sh file to your local.

  1. Run the sudo kind create cluster --name ko2 --config /home/debuggerboy/labs/kubernetes/anish-kind/multi-node.yaml command
  2. Run the command sudo podman ps -a
  3. See if you are able to see the 3 (clusters = 2 workers and 1 control-plane)
  4. once you see those containers are showing up in above command
  5. run the bash podman-fix-for-cluster-fail.sh command

Now the kind-sigs cluster will be created properly.

I am not having great experience in kubernetes cluster and kind-sigs. This is my primitive way of preventing my kind clusters from failing.

Thanks debuggerboy

debuggerboy@cassandra:~$ sudo kind create cluster --name ko2 --config /home/debuggerboy/labs/kubernetes/anish-kind/multi-node.yaml
enabling experimental podman provider
Creating cluster "ko2" ...
✓ Ensuring node image (kindest/node:v1.23.0) 🖼
✓ Preparing nodes 📦 📦 📦
✓ Writing configuration 📜
✓ Starting control-plane 🕹️
✓ Installing CNI 🔌
✓ Installing StorageClass 💾
✗ Joining worker nodes 🚜
ERROR: failed to create cluster: failed to join node with kubeadm: command "podman exec --privileged ko2-worker kubeadm join --config /kind/kubeadm.conf --skip-phases=preflight --v=6" failed with error: exit status 1
Command Output: I0403 11:25:56.426017 112 join.go:413] [preflight] found NodeName empty; using OS hostname as NodeName
I0403 11:25:56.426048 112 joinconfiguration.go:76] loading configuration from "/kind/kubeadm.conf"
I0403 11:25:56.427054 112 controlplaneprepare.go:220] [download-certs] Skipping certs download
I0403 11:25:56.427068 112 join.go:530] [preflight] Discovering cluster-info
I0403 11:25:56.427084 112 token.go:80] [discovery] Created cluster-info discovery client, requesting info from "ko2-control-plane:6443"
I0403 11:25:56.541771 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 114 milliseconds
I0403 11:25:56.541902 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:02.545280 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 95 milliseconds
I0403 11:26:02.545376 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:09.042408 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 84 milliseconds
I0403 11:26:09.042516 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:15.129061 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 85 milliseconds
I0403 11:26:15.129231 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:20.877250 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 87 milliseconds
I0403 11:26:20.877357 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:26.596387 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 81 milliseconds
I0403 11:26:26.596510 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:32.707165 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 79 milliseconds
I0403 11:26:32.707230 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:37.899845 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 93 milliseconds
I0403 11:26:37.900155 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:43.226959 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 91 milliseconds
I0403 11:26:43.227051 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:48.461412 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 87 milliseconds
I0403 11:26:48.461522 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:54.001388 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 88 milliseconds
I0403 11:26:54.001474 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:26:59.885428 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 108 milliseconds
I0403 11:26:59.885561 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:06.195582 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 85 milliseconds
I0403 11:27:06.195684 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:11.605820 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 87 milliseconds
I0403 11:27:11.606037 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:17.258070 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 79 milliseconds
I0403 11:27:17.258158 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:22.849771 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 112 milliseconds
I0403 11:27:22.849944 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:28.638256 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 83 milliseconds
I0403 11:27:28.638389 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:34.147751 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 83 milliseconds
I0403 11:27:34.147882 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:39.673508 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 84 milliseconds
I0403 11:27:39.673621 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:45.774237 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 80 milliseconds
I0403 11:27:45.774375 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:51.187756 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 82 milliseconds
I0403 11:27:51.187875 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:27:56.587711 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 93 milliseconds
I0403 11:27:56.587836 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:02.245417 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 115 milliseconds
I0403 11:28:02.245594 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:08.186692 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 84 milliseconds
I0403 11:28:08.186797 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:14.570355 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 88 milliseconds
I0403 11:28:14.570487 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:20.095035 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 83 milliseconds
I0403 11:28:20.095149 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:25.627496 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 86 milliseconds
I0403 11:28:25.627642 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:31.896445 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 139 milliseconds
I0403 11:28:31.896574 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:37.289754 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 82 milliseconds
I0403 11:28:37.289872 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:43.704542 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 115 milliseconds
I0403 11:28:43.704786 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:49.837737 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 86 milliseconds
I0403 11:28:49.837825 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:28:55.718557 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 91 milliseconds
I0403 11:28:55.718638 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:00.845796 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 84 milliseconds
I0403 11:29:00.845887 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:06.175713 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 90 milliseconds
I0403 11:29:06.175826 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:12.182676 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 95 milliseconds
I0403 11:29:12.182771 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:18.735049 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 88 milliseconds
I0403 11:29:18.735141 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:23.934240 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 78 milliseconds
I0403 11:29:23.934352 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:29.918871 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 89 milliseconds
I0403 11:29:29.918976 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:35.094124 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 84 milliseconds
I0403 11:29:35.094229 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:41.224226 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 88 milliseconds
I0403 11:29:41.224329 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:46.762521 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 85 milliseconds
I0403 11:29:46.762645 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:52.108709 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 85 milliseconds
I0403 11:29:52.108815 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:29:58.005325 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 83 milliseconds
I0403 11:29:58.005440 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:03.915110 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 92 milliseconds
I0403 11:30:03.915251 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:09.493308 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 159 milliseconds
I0403 11:30:09.493533 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:15.215357 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 85 milliseconds
I0403 11:30:15.215470 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:21.104431 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 91 milliseconds
I0403 11:30:21.104537 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:26.567028 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 81 milliseconds
I0403 11:30:26.567142 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:32.071131 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 80 milliseconds
I0403 11:30:32.071244 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:38.344705 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 89 milliseconds
I0403 11:30:38.344937 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:43.970032 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 80 milliseconds
I0403 11:30:43.970153 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:50.376080 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 83 milliseconds
I0403 11:30:50.376191 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
I0403 11:30:55.929165 112 round_trippers.go:553] GET https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s in 103 milliseconds
I0403 11:30:55.929282 112 token.go:217] [discovery] Failed to request cluster-info, will try again: Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
Get "https://ko2-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s": dial tcp: lookup ko2-control-plane on 8.8.8.8:53: no such host
couldn't validate the identity of the API Server
k8s.io/kubernetes/cmd/kubeadm/app/discovery.For
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/discovery/discovery.go:45
k8s.io/kubernetes/cmd/kubeadm/app/cmd.(*joinData).TLSBootstrapCfg
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/join.go:531
k8s.io/kubernetes/cmd/kubeadm/app/cmd.(*joinData).InitCfg
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/join.go:541
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join.getKubeletStartJoinData
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join/kubelet.go:89
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join.runKubeletStartJoinPhase
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join/kubelet.go:104
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:234
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:421
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:207
k8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdJoin.func1
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/join.go:178
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).execute
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:856
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:974
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).Execute
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:902
k8s.io/kubernetes/cmd/kubeadm/app.Run
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/kubeadm.go:50
main.main
_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/kubeadm.go:25
runtime.main
/usr/local/go/src/runtime/proc.go:255
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1581
error execution phase kubelet-start
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:235
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:421
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:207
k8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdJoin.func1
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/join.go:178
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).execute
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:856
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).ExecuteC
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:974
k8s.io/kubernetes/vendor/github.com/spf13/cobra.(*Command).Execute
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/vendor/github.com/spf13/cobra/command.go:902
k8s.io/kubernetes/cmd/kubeadm/app.Run
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/kubeadm.go:50
main.main
_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/kubeadm.go:25
runtime.main
/usr/local/go/src/runtime/proc.go:255
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1581
debuggerboy@cassandra:~$
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
featureGates:
"SetHostnameAsFQDN": true
networking:
ipFamily: ipv4
kubeProxyMode: "iptables"
nodes:
- role: control-plane
image: kindest/node:v1.23.0@sha256:49824ab1727c04e56a21a5d8372a402fcd32ea51ac96a2706a12af38934f81ac
- role: worker
image: kindest/node:v1.23.0@sha256:49824ab1727c04e56a21a5d8372a402fcd32ea51ac96a2706a12af38934f81ac
- role: worker
image: kindest/node:v1.23.0@sha256:49824ab1727c04e56a21a5d8372a402fcd32ea51ac96a2706a12af38934f81ac
#!/bin/bash
NODELIST=$(sudo kind get nodes --name ko2 2>/dev/null)
NUMNODES=$(sudo kind get nodes --name ko2 2>/dev/null | wc -l)
CONTROLLER1=$(sudo podman inspect ko2-control-plane | grep -i GlobalIPv6Address | grep -v '""' | cut -d '"' -f 4)
WORKER1=$(sudo podman inspect ko2-worker | grep -i GlobalIPv6Address | grep -v '""' | cut -d '"' -f 4)
WORKER2=$(sudo podman inspect ko2-worker2 | grep -i GlobalIPv6Address | grep -v '""' | cut -d '"' -f 4)
echo ${CONTROLLER1}
echo ${WORKER1}
echo ${WORKER2}
(sudo podman exec -i ko2-control-plane bash -c "cat > /etc/hosts") << EOF
127.0.0.1 localhost
${CONTROLLER1} ko2-control-plane ko2-control-plane
${WORKER1} ko2-worker ko2-worker
${WORKER2} ko2-worker2 ko2-worker2
EOF
(sudo podman exec -i ko2-worker bash -c "cat > /etc/hosts") << EOF
127.0.0.1 localhost
${CONTROLLER1} ko2-control-plane ko2-control-plane
${WORKER1} ko2-worker ko2-worker
${WORKER2} ko2-worker2 ko2-worker2
EOF
(sudo podman exec -i ko2-worker2 bash -c "cat > /etc/hosts") << EOF
127.0.0.1 localhost
${CONTROLLER1} ko2-control-plane
${WORKER1} ko2-worker ko2-worker
${WORKER2} ko2-worker2 ko2-worker2
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment