fix(kubernetes): remove cilium dependency from coredns HelmRelease

When Hubble Relay is enabled at tenant cluster creation, hubble-relay waits on DNS resolution for hubble-peer.cozy-cilium.svc.cluster.local before the Cilium HelmRelease becomes Ready. Because the CoreDNS HelmRelease declared dependsOn on Cilium, Flux blocked CoreDNS installation until Cilium was ready, creating a circular deadlock.

Removing dependsOn from CoreDNS lets both HelmReleases reconcile concurrently: CoreDNS pods remain Pending without a CNI and retry via spec.install.remediation.retries: -1 until Cilium comes up, at which point CoreDNS starts and unblocks Hubble Relay.

Closes: #5315
Assisted-by: LLM
Signed-off-by: anikethinge <anikethinge4@gmail.com>
This commit is contained in:
anikethinge committed 2026-11-15 01:08:59 +05:30
1 parent 90797d9de9
commit a91689ad8a
2 files changed
+30 -3

No files matched your search

@@ -35,7 +35,4 @@ spec:
retries: -1
values:
{{- toYaml (deepCopy .Values.addons.coredns.valuesOverride | mergeOverwrite (fromYaml (include "cozystack.defaultCoreDNSValues" .))) | nindent 4 }}
dependsOn:
- name: {{ .Release.Name }}-cilium
namespace: {{ .Release.Namespace }}
{{- end }}
@@ -0,0 +1,30 @@
suite: CoreDNS HelmRelease dependency tests
templates:
- templates/helmreleases/coredns.yaml
values:
- values-ci.yaml
tests:
# When Hubble Relay is enabled at cluster creation, hubble-relay resolves
# hubble-peer.cozy-cilium.svc.cluster.local before the Cilium HelmRelease can
# report Ready. CoreDNS must not declare dependsOn on Cilium, otherwise both
# HelmReleases deadlock; without a CNI CoreDNS pods stay Pending and retry
# until Cilium comes up.
- it: does not depend on the Cilium HelmRelease so cluster DNS can bootstrap alongside CNI
set:
addons:
cilium:
valuesOverride:
cilium:
hubble:
enabled: true
relay:
enabled: true
asserts:
- isNull:
path: spec.dependsOn
- equal:
path: spec.install.remediation.retries
value: -1
- equal:
path: spec.upgrade.remediation.retries
value: -1