[stable/node-local-dns] Make liveness probe configurable#789
Open
paddy-bedraggled wants to merge 1 commit intodeliveryhero:masterfrom
Open
[stable/node-local-dns] Make liveness probe configurable#789paddy-bedraggled wants to merge 1 commit intodeliveryhero:masterfrom
paddy-bedraggled wants to merge 1 commit intodeliveryhero:masterfrom
Conversation
Up to standards ✅🟢 Issues
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR makes the
node-local-dnschart liveness probe configurable instead of hardcoding the probe request to/healthonconfig.healthPortwith fixed timing values. The change is backward-compatible: existing installs keep the same effective probe behavior unless the newlivenessProbevalues are explicitly set.Context & Rationale
In our network, we want this service to listen only locally on the node for NodeLocal DNS traffic and not rely on externally reachable probe behavior. In particular, when the health listener is bound to a local node address, the liveness probe needs to be able to target that same host explicitly, for example via
livenessProbe.httpGet.host.Without this, the chart only allows configuring the probe port, which is not sufficient for environments where the health endpoint should remain local to the node and not be exposed more broadly just to satisfy liveness checks.
Detailed Changes
Probe templating
stable/node-local-dns/templates/daemonset.yaml: Replaced the hardcoded liveness probe with values-driven fields.livenessProbe.httpGet.hostlivenessProbe.httpGet.pathlivenessProbe.httpGet.portlivenessProbe.httpGet.schemelivenessProbe.initialDelaySecondslivenessProbe.timeoutSecondslivenessProbe.periodSecondslivenessProbe.successThresholdlivenessProbe.failureThresholdconfig.healthPortas the fallback for the probe port so existing releases do not need to change values.Chart values
stable/node-local-dns/values.yaml: Added a newlivenessProbeconfiguration block with defaults matching the previous chart behavior.Documentation and versioning
stable/node-local-dns/README.md: Documented the newlivenessProbevalues.stable/node-local-dns/Chart.yaml: Bumped the chart version from2.7.0to2.7.1.Verification
helm lint stable/node-local-dnshelm template test stable/node-local-dns/health8080viaconfig.healthPortinitialDelaySeconds: 60timeoutSeconds: 5--set livenessProbe.httpGet.host=169.254.20.10 --set livenessProbe.httpGet.port=8080httpGet.host: "169.254.20.10"in the daemonset probeImpact
livenessProbesettings.config.healthPort.Task Tracking