Upgrade EKS Core Add-ons

This workshop has been deprecated and archived. The new Amazon EKS Workshop is now available at www.eksworkshop.com.

When you provision an EKS cluster you get three add-ons that run on top of the cluster and that are required for it to function properly:

  • kubeproxy
  • CoreDNS
  • aws-node (AWS CNI or Network Plugin)

Looking at the the upgrade documentation for our 1.21 to 1.22 upgrade we see that we’ll need to upgrade the kubeproxy and CoreDNS. In addition to performing these steps manually with kubectl as documented there you’ll find that eksctl can do it for you as well.

Since we are using eksctl in the workshop we’ll run the two necessary commands for it to do these updates for us:

eksctl utils update-kube-proxy --cluster=eksworkshop-eksctl --approve

and then

eksctl utils update-coredns --cluster=eksworkshop-eksctl --approve

We can confirm we succeeded by retrieving the versions of each with the commands:

kubectl get daemonset kube-proxy --namespace kube-system -o=jsonpath='{$.spec.template.spec.containers[:1].image}'
kubectl describe deployment coredns --namespace kube-system | grep Image | cut -d "/" -f 3