varnish-operator icon indicating copy to clipboard operation
varnish-operator copied to clipboard

Querstion about cache invalidation

Open pasztorl opened this issue 1 year ago • 2 comments

Hi, If I run multiple varnish instances is there a vay to purge the caches so the purge command is distributed between the varnish pods?

pasztorl avatar Jun 13 '24 21:06 pasztorl

Unfortunately, there is not a built in way to do this with the varnish operator. Are you wanting to run the purge command across all varnish instances at once or serially? If the former, perhaps [kubectl-parallel-exec](https://github.com/cin/kubectl-parallel-exec) could help. If this is a feature you'd like added, feel free to contribute a PR. I have been maintaining a fork of this repo here. I need to do some maintenance on this project in general.

cin avatar Jun 17 '24 13:06 cin

Yes, in general I would like to control the cache with a single request, like on this project: https://github.com/mittwald/kube-httpcache

pasztorl avatar Jun 17 '24 17:06 pasztorl