Ingress Server Crashing on microk8s

I have Microk8s Kubernetes running on an old server. Apparently one of the release versions of the ingress service needed sse-4.2 and would crash without it. The problem is described well at https://github.com/rancher/rancher/issues/23626. Unfortunately the solution given assumes as bit of Kubernetes knowledge. Here I fill in some of the gaps.

Replacing the image for a running node in Kubernetes



1. Get the name of the pod you want to fix



$ kubectl get --namespace ingress all
NAME READY STATUS RESTARTS AGE
pod/nginx-ingress-microk8s-controller-cq6lc 1/1 Running 27 88m

NAME DESIRED CURRENT READY UP-TO-DATE AVAILABLE NODE SELECTOR AGE
daemonset.apps/nginx-ingress-microk8s-controller 1 1 1 1 1 88m


2. Edit the configuration



$ kubectl edit pod/nginx-ingress-microk8s-controller-cq6lc --namespace ingress
In this case fixing the line
quay.io/kubernetes-ingress-controller/nginx-ingress-controller-amd64:0.25.1
to read
quay.io/kubernetes-ingress-controller/nginx-ingress-controller-amd64:0.27.1

3. Check it worked


kubectl logs nginx-ingress-microk8s-controller-cq6lc --namespace ingress