-
Notifications
You must be signed in to change notification settings - Fork 42
Kubernetes Version confusion #173
Description
During testing, I looked up the default Kubernetes versions to get up and running but I kept getting errors. In the README file, it says: "CAPP (Cluster API Provider for Packet) supports Ubuntu 18.04 and Kubernetes 1.14.3"
I tried this combination but the master did not end up with Kubernetes being installed properly. It was complaining that the kubelet config file was not found. Upon further investigation, I see this error message on the master:
Aug 14 21:37:21 localhost cloud-init[1585]: W0814 21:37:21.834519 9258 common.go:77] your configuration file uses a deprecated API spec: "kubeadm.k8s.io/v1beta1". Please use 'kubeadm config migrate --old-config old.yaml --new-config new.yaml', which will write the new, similar spec using a newer API version.
Aug 14 21:37:21 localhost cloud-init[1585]: this version of kubeadm only supports deploying clusters with the control plane version >= 1.17.0. Current version: v1.14.3
It seems that this combination in the README is not working. I ended up trying to match the version but then it gave me this error:
Aug 14 21:44:47 localhost cloud-init[1769]: error execution phase preflight: [preflight] Some fatal errors occurred:
Aug 14 21:44:47 localhost cloud-init[1769]: #11[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.18.8" Control plane version: "1.17.0"
I then ended up using the combination of Kubernetes version 1.18.8 and Ubuntu 18.04 and it ended up working for me. Not sure if this is an update to the default section of the README or clarifying the proper version combination since link "https://github.com/kubernetes-sigs/cluster-api-provider-packet/blob/master/config/default/machine_configs.yaml" is broken.