Controversially pronounced 'kate-update'
This is a simple bit of code intended to check your kubernetes cluster for containers where the running shasum doesn't match what the registry reports.
This might come about from legitimate scenarios such as the remote tag (e.g. image:latest or a semver style image:1) has been updated, or could be someone has poisoned the node's docker cache and could be running something wildly different to what you expect.
Where there is a difference it will delete the pod without warning. Bit brutal, would be better to try and locate the replication controller/deployment/whatever and kick off a rolling update.
if you specify a LABELSELECTOR env var it will limit to pods that match the label e.g. keepupdate=true
It is expected that your pull policy will mean that the container will be pulled from the source again next time.
If you're brave and trust me
kubectl apply -k https://github.com/chrisns/k8update
Which will:
k8updatek8updatek8updatek8update which will run @hourly you can use Kustomize to override any of those thingsIf you just want to run it first you could use:
docker run --rm -ti -v ${HOME}/.kube/config:/root/.kube/config:ro chrisns/k8update
Content type
Image
Digest
Size
64.8 MB
Last updated
over 4 years ago
docker pull chrisns/k8update