kubeadm: 1.12: missleading errors when passing --config
NOTE: this page needs an update: https://kubernetes.io/docs/setup/independent/high-availability/
ref: https://github.com/kubernetes/website/issues/10450
users of kubeadm 1.12.x are reporting that they see errors when they do actions like:
kubeadm alpha phase kubelet write-env-file --config kubeadm-config.yaml
didn't recognize types with GroupVersionKind: [kubeadm.k8s.io/v1alpha3, Kind=ClusterConfiguration]
this is due to the fact that they are passing only ClusterConfiguration and not combining with InitConfiguration:
kind: ClusterConfiguration
apiVersion: kubeadm.k8s.io/v1alpha3
kubernetesVersion: v1.12.1
---
kind: InitConfiguration
apiVersion: kubeadm.k8s.io/v1alpha3
/kind bug /priority important-soon /assign @fabriziopandini @rosti @neolit123 /cc @detiber
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 28 (19 by maintainers)
That’s on my hit list starting from tomorrow.
@neolit123 Thanks. My issue is solved. 👍
@neolit123 We need
InitConfigurationorJoinConfigurationforphase kubelet write-env-file, because we don’t haveNodeRegistrationOptionsinClusterConfiguration. See here: https://github.com/kubernetes/kubernetes/blob/4ed3216f3ec431b140b1d899130a69fc671678f4/cmd/kubeadm/app/cmd/phases/kubelet.go#L152