Closed sitilge closed 2 years ago
/kind support
--config=/etc/kubernetes/admin.conf
You seem to be passing a kubeconfig file (admin.conf), and not a kubeadm config file.
@neolit123 you're right, don't know what I was thinking.
as per above response /close
@SataQiu: Closing this issue.
BUG REPORT
Versions
Environment:
kubectl version
):Client Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.1", GitCommit:"86ec240af8cbd1b60bcc4c03c20da9b98005b92e", GitTreeState:"clean", BuildDate:"2021-12-16T11:41:01Z", GoVersion:"go1.17.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"23", GitVersion:"v1.23.0", GitCommit:"ab69524f795c42094a6630298ff53f3c3ebab7f4", GitTreeState:"clean", BuildDate:"2021-12-07T18:09:57Z", GoVersion:"go1.17.3", Compiler:"gc", Platform:"linux/amd64"}
Hetzner cloud, 2vCPU, 4GB RAM
NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=focal UBUNTU_CODENAME=focal
uname -a
):Linux master-1 5.4.0-90-generic #101-Ubuntu SMP Fri Oct 15 20:00:55 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
containerd
cilium
What happened?
Was following the kubeadm docs, setting up a new control plane. Then
kubeadm kubeconfig user --client-name=abc --config=/etc/kubernetes/admin.conf --v=5
fails with the logs provided below. Basically, it says:invalid configuration for GroupVersionKind /v1, Kind=Config: kind and apiVersion is mandatory information that must be specified
. The kubeadm config file is as follows:What you expected to happen?
The previous command to work.
How to reproduce it (as minimally and precisely as possible)?
Initialize a new control-plane node, then run the command above.
Anything else we need to know?
Seems like related to not being able to split Yaml documents?