Closed doka380 closed 3 months ago
could not interpret GroupVersionKind; unmarshal error: error converting YAML to JSON: yaml: line 9: did not find expected key
this is a problem from the sigs.k8s.io/yaml library which core k8s and kubeadm use.
i think it's a matter of quoting the value. please try:
apiServerEndpoint: "[2a01:xxxx:xxxx:xxxx:1715::19e]:6443"
notice how the quoted one works on init
:
controlPlaneEndpoint: "[2a01:xxxx:xxxx:xxxx:1715::19e]:6443"
Yup, thank you very much, it was about quoting. Thanks again :)
What keywords did you search in kubeadm issues before filing this one?
apiServerEndpoint, IPv6
Is this a BUG REPORT or FEATURE REQUEST?
BUG REPORT
Versions
kubeadm version: 1.31.0
Environment:
uname -a
): 6.8.0.41What happened?
When joining cluster with custom YAML file, the following configuration (specifically - apiServerEndpoint) fails:
with the message
but if I change apiServerEndpoint parameter to fqdn:6443, it passes through this step. At the same time, the following CLI command (using the same syntax [IPv6]:port) do not produce error messages:
and, using the same notation for controlPlaneEndpoint in ClusterConfiguration during
kubeadm init
:passed successfully.
What you expected to happen?
I'm expecting that using notation [IPv6]:port should not produce errors, if this notation works in CLI and in other configurations of kubeadm.
How to reproduce it (as minimally and precisely as possible)?
Try to initialize single controller and join single worker in IPv6-based environment, using IP addresses instead of FQDNs.
Anything else we need to know?
I like Kubernetes :-)