kube-goat
kube-goat copied to clipboard
"â Joining worker nodes đ" fails
Hi,
Whether it is on my Mac installation (last stable versions of macOS
, docker
, kind
, kubectl
) or within a Debian a Docker in Docker, I got the following error when running kind create cluster --name=kubegoat --config=config.yaml
.
Feel free if you have any piece of idea / advice to solve the issue :)
Thanks.
The verbose error:
Creating cluster "kubegoat" ...
â Ensuring node image (kindest/node:v1.18.2) đŧ
â 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 "docker exec --privileged kubegoat-worker kubeadm join --config /kind/kubeadm.conf --ignore-preflight-errors=all --v=6" failed with error: exit status 1
Command Output: W0730 12:20:29.853736 374 join.go:346] [preflight] WARNING: JoinControlPane.controlPlane settings will be ignored when control-plane flag is not set.
I0730 12:20:29.853812 374 join.go:371] [preflight] found NodeName empty; using OS hostname as NodeName
I0730 12:20:29.853834 374 joinconfiguration.go:74] loading configuration from "/kind/kubeadm.conf"
I0730 12:20:29.856929 374 preflight.go:90] [preflight] Running general checks
[preflight] Running pre-flight checks
I0730 12:20:29.857383 374 checks.go:249] validating the existence and emptiness of directory /etc/kubernetes/manifests
I0730 12:20:29.857453 374 checks.go:286] validating the existence of file /etc/kubernetes/kubelet.conf
I0730 12:20:29.857481 374 checks.go:286] validating the existence of file /etc/kubernetes/bootstrap-kubelet.conf
I0730 12:20:29.857515 374 checks.go:102] validating the container runtime
I0730 12:20:29.923826 374 checks.go:376] validating the presence of executable crictl
I0730 12:20:29.923941 374 checks.go:335] validating the contents of file /proc/sys/net/bridge/bridge-nf-call-iptables
[WARNING FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist
I0730 12:20:29.924112 374 checks.go:335] validating the contents of file /proc/sys/net/ipv4/ip_forward
I0730 12:20:29.924194 374 checks.go:649] validating whether swap is enabled or not
[WARNING Swap]: running with swap on is not supported. Please disable swap
I0730 12:20:29.924334 374 checks.go:376] validating the presence of executable conntrack
I0730 12:20:29.926041 374 checks.go:376] validating the presence of executable ip
I0730 12:20:29.926154 374 checks.go:376] validating the presence of executable iptables
I0730 12:20:29.926187 374 checks.go:376] validating the presence of executable mount
I0730 12:20:29.926239 374 checks.go:376] validating the presence of executable nsenter
I0730 12:20:29.926297 374 checks.go:376] validating the presence of executable ebtables
I0730 12:20:29.926481 374 checks.go:376] validating the presence of executable ethtool
I0730 12:20:29.926575 374 checks.go:376] validating the presence of executable socat
I0730 12:20:29.926618 374 checks.go:376] validating the presence of executable tc
I0730 12:20:29.926664 374 checks.go:376] validating the presence of executable touch
I0730 12:20:29.926736 374 checks.go:520] running all checks
I0730 12:20:29.933609 374 checks.go:406] checking whether the given node name is reachable using net.LookupHost
I0730 12:20:29.935854 374 checks.go:618] validating kubelet version
I0730 12:20:30.003623 374 checks.go:128] validating if the service is enabled and active
I0730 12:20:30.014532 374 checks.go:201] validating availability of port 10250
I0730 12:20:30.014700 374 checks.go:286] validating the existence of file /etc/kubernetes/pki/ca.crt
I0730 12:20:30.014797 374 checks.go:432] validating if the connectivity type is via proxy or direct
I0730 12:20:30.014833 374 join.go:441] [preflight] Discovering cluster-info
I0730 12:20:30.014866 374 token.go:78] [discovery] Created cluster-info discovery client, requesting info from "kubegoat-control-plane:6443"
I0730 12:20:30.025318 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 7 milliseconds
I0730 12:20:30.025670 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:20:30.026551 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:20:30.026666 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:20:36.058535 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:20:36.058681 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:20:41.158518 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:20:41.158677 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:20:46.405262 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:20:46.406533 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:20:51.553262 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:20:51.553484 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:20:56.973276 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:20:56.973475 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:02.751754 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:21:02.752027 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:08.974865 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:21:08.975058 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:14.297922 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:21:14.298071 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:19.870965 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:21:19.871122 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:25.316414 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:21:25.316601 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:31.021326 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:21:31.021451 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:36.447836 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:21:36.448020 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:41.889369 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:21:41.889602 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:47.910038 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:21:47.910219 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:21:54.609647 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1405 milliseconds
I0730 12:21:54.610081 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:00.468375 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:22:00.468551 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:06.763886 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:06.764049 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:12.205210 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:12.205374 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:17.652205 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:17.652320 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:23.748061 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:23.748328 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:29.059743 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:29.059873 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:35.362006 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 3 milliseconds
I0730 12:22:35.362759 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:41.409960 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:22:41.410835 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:47.197680 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:47.197960 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:52.241638 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:22:52.241806 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:22:57.446637 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:22:57.446851 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:03.359738 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:03.360029 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:09.825676 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:09.825924 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:14.946323 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:23:14.946621 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:20.841070 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:20.841275 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:25.911940 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 16 milliseconds
I0730 12:23:25.912201 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:31.174222 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:31.174398 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:36.987986 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:36.988441 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:42.806017 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:23:42.806121 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:48.226915 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:48.227095 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:53.829447 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:23:53.829586 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:23:59.627035 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 0 milliseconds
I0730 12:23:59.627156 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:05.009087 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:05.009384 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:10.434684 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:10.435356 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:16.620367 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:16.620542 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:22.165278 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:22.165537 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:28.453723 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:28.453852 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:33.901345 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:33.901615 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:40.245249 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:40.245878 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:45.394173 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:24:45.394316 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:24:54.169882 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 2344 milliseconds
I0730 12:24:54.170027 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:25:00.193818 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:25:00.194128 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:25:05.559617 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 2 milliseconds
I0730 12:25:05.559807 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:25:11.029007 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:25:11.029224 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:25:17.430442 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:25:17.431183 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
I0730 12:25:23.510742 374 round_trippers.go:443] GET https://kubegoat-control-plane:6443/api/v1/namespaces/kube-public/configmaps/cluster-info?timeout=10s 401 Unauthorized in 1 milliseconds
I0730 12:25:23.510850 374 token.go:215] [discovery] Failed to request cluster-info, will try again: Unauthorized
Unauthorized
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:44
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:442
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:452
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join.runPreflight
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/join/preflight.go:95
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:422
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:170
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:826
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:914
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:864
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:203
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1357
error execution phase preflight
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:422
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:170
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:826
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:914
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:864
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:203
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1357
FYI, here is how I created my Docker in Docker :
docker run -it -v /var/run/docker.sock:/var/run/docker.sock debian bash
And inside the Docker :
cd ~
apt update
apt install -y curl nano git
curl -o install.sh https://get.docker.com
chmod +x install.sh
./install.sh
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
chmod +x ./kubectl
mv ./kubectl /usr/local/bin/kubectl
curl -o kind https://github.com/kubernetes-sigs/kind/releases/download/v0.8.1/kind-linux-amd64
chmod +x ./kind
mv ./kind /usr/local/bin/kind
git clone https://github.com/ksoclabs/kube-goat.git
cd kube-goat/deploy/kind/
kind create cluster --name=kubegoat --config=config.yaml
Hi
I tried same steps and now I am getting "/usr/local/bin/kind: line 1: syntax error near unexpected token <' /usr/local/bin/kind: line 1:
Hi I tried same steps and now I am getting this error.
/usr/local/bin/kind: line 1: syntax error near unexpected token `<'
/usr/local/bin/kind: line 1: `<html><body>You are being <a href="https://github-production-release-asset-2e65be.s3.amazonaws.com/148545807/3c09fc80-8bcf-11ea-8d53-0646d9b80782?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20200827%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20200827T115859Z&X-Amz-Expires=300&X-Amz-Signature=4fac37a3fe3c942871f8022e931de33aea4264e1d48f273ac7b577b229fffc71&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=148545807&response-content-disposition=attachment%3B%20filename%3Dkind-linux-amd64&response-content-type=application%2Foctet-stream">redirected</a>.</body></html>'