Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow starting without service endpoints #260

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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