Skip to content

[release-v1.40] Use pod-network k8s service endpoint for non-cluster-host Typha#4841

Merged
caseydavenport merged 2 commits into
tigera:release-v1.40from
caseydavenport:casey-nch-typha-podnet-v1.40
May 22, 2026
Merged

[release-v1.40] Use pod-network k8s service endpoint for non-cluster-host Typha#4841
caseydavenport merged 2 commits into
tigera:release-v1.40from
caseydavenport:casey-nch-typha-podnet-v1.40

Conversation

@caseydavenport
Copy link
Copy Markdown
Member

@caseydavenport caseydavenport commented May 21, 2026

This branch (and the corresponding Calico Enterprise v3.22.x line) doesn't have #4474 in it, so a direct cherry-pick of #4840 + #4846 doesn't apply cleanly. This is a minimal, self-contained backport that fixes the customer-reported failure mode without pulling the larger pod-network ServiceEndpoint refactor onto a stable branch.

The non-cluster-host Typha deployment runs pod-networked but inherits KUBERNETES_SERVICE_HOST/PORT from the host-network endpoint. On MKE clusters that resolves to proxy.local:6444, which pods can't resolve, so the deployment crashloops with DNS timeouts during the iptables-to-eBPF migration. Strip those env vars in typhaEnvVarsNonClusterHost so the NCH Typha falls back to the in-cluster kubernetes Service that kubelet injects into every pod.

Requested for inclusion in the v3.22.6 patch release.

Related: https://tigera.atlassian.net/browse/CI-1987

Fixes the non-cluster-host Typha deployment crashlooping on clusters where the host-network kube-apiserver endpoint is not reachable from pod-networked pods (e.g. MKE proxy.local).

The non-cluster-host Typha deployment runs pod-networked but inherits
KUBERNETES_SERVICE_HOST/PORT from the host-network endpoint. On MKE
clusters that resolves to proxy.local:6444, which pods can't resolve,
so the deployment crashloops with DNS timeouts during the
iptables-to-eBPF migration.

Strip those env vars so the NCH Typha falls back to the in-cluster
kubernetes Service that kubelet injects into every pod.
@caseydavenport caseydavenport force-pushed the casey-nch-typha-podnet-v1.40 branch from 06ab4fa to 9ac27ec Compare May 21, 2026 23:03
@caseydavenport caseydavenport merged commit febdc85 into tigera:release-v1.40 May 22, 2026
3 checks passed
@caseydavenport caseydavenport deleted the casey-nch-typha-podnet-v1.40 branch May 22, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants