kairen / kubeadm-ansible

Build a Kubernetes cluster using kubeadm via Ansible.
Apache License 2.0
723 stars 380 forks source link

Installing kubernetes 1.20.0 fails #91

Open anilnokia opened 2 years ago

anilnokia commented 2 years ago

This scripts only installs latest version. When I change K8_version in the all.yaml to 1.20.0 it fails due to the fact that it installs latest kubeadm. Could you please help me where to change so I can install kubeadm, kubectl and kubelet of version 1.20.0 instead of latest.

Thanks,

PraveshKoirala commented 2 years ago

See roles/kubernetes/node/meta/main.yml and roles/kubernetes/master/meta/main.yml

In particular, look for the array pkgs: ["kubelet", "kubeadm"]. Change them appropriately i.e. kubelet=x.x.x or kubeadm=x.x.x and it should work.