Upgrade Kubernetes in an air gapped environment

Cluster information: Kubernetes v1.18.0 offline upgrade

Kubernetes version: v1.18.0
Cloud being used: bare-metal
Installation method: manual
Host OS: CentOS Linux release 7.9.2009 (Core)
CNI and version: Flannel
CRI and version: Docker version 20.10.7, build f0df350

I am trying to upgrade my Kubernetes cluster that is in an air gapped environment. I copied all the RPM’s and container images that I needed for v1.22.1. I have upgraded the RPM’s and have modified the manifest appropriately in /etc/kubernetes/manifests. Problem is there is no manifest for kube-proxy and kube-proxy is still running the old container images. Also when I run “kubectl -n kube-system get cm kubeadm-config -o yaml” it shows “kubernetesVersion: v1.18.0”. How do I get kube-proxy to run the correct container and the cluster to reflect the correct version?

Thanks!

1 Like