Skip to content

Conversation

@mateusz-kolecki
Copy link

@mateusz-kolecki mateusz-kolecki commented Jan 23, 2025

This PR helps with #222

It allows the start of the first Varnish Pod in a StatefulSet/Deployment before any Varnish Pod IP appears on the service Endpoints list.

When you enable liveness/readiness probes, the first instance is waiting for itself. In this PR, new CLI flags are added to define a timeout for frontends/backends initialization. This allows the first Pod to start anyway.

In the VCL you must handle cases when there are no frontends/backends and the liveness/readiness probe should behave in a way that will eventually allow k8s to add this instance to the endpoint list in the service. After that, the controller renders a new VCL with a non-empty list of frontends/backends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants