Varnish in pod can't bind to :80
On my GKE cluster, I've got a pod with Varnish, Ghost CMS backend and a sql-proxy sidecar. Google load balancer ingress. It was working fine for months, but recently it seems like Varnish updated their docker image (maybe to run as a different USER) and now I am getting a crash loop on my Varnish container that says it can't bind to :80 (access is denied).
I'm somewhat new to K8s. Which is better, to elevate the container to some kind of privileged mode, or run on a different port?
Posted Mar 30, 2022, 11:22 PM UTC
32
Try both to make sure you understand how to get it working again. You will learn something with each way.
Then I'd go for moving the port, but there is really not much difference (the capability needed for that does not grant way more things, and it is silly that kubernetes default to allow it hasn't changed yet)
Thanks. I moved the target port to 8080 and all is well now. Learned how to pass a command and args to a container in my deployment.yaml file - telling varnishd to bind to :8080.