Azure / k8s-deploy

GitHub Action for deploying to Kubernetes clusters
MIT License
252 stars 103 forks source link

k8s-deploy does not update pods with new images #314

Open Chris-Sheridan opened 6 months ago

Chris-Sheridan commented 6 months ago

What happened?

This executes as part of my GH Actions after a code update. The resulting image builds fine and is uploaded to my ACR registry. GH Actions successfully runs k8s-deploy as part of the workflow, but it doesn't detect any changes. The pods never bleed over and the old pods still run. I'm sure I have something wrong but I've had no luck searching.

Here's my action...

I appreciate any thoughts people have on what I'm missing.

Version

Runner

self-hosted, Azure ACA Container Job

Relevant log output

/usr/local/bin/kubectl apply -f /tmp/deployment.yaml,/tmp/service.yaml,/tmp/cluster-issuer.yaml,/tmp/ingress.yaml --namespace ingress-basic deployment.apps/my-app unchanged service/my-app unchanged clusterissuer.cert-manager.io/letsencrypt unchanged ingress.networking.k8s.io/my-app-ingress unchanged

OrellBuehler commented 5 months ago

If you use latest as the tag for all images and you don't set pull-images to true, then I believe it will use the cached images instead of updating them from your registry.