Commit 0cb89b1
committed
submariner: Restart CoreDNS after lighthouse configures clusterset.local
subctl join patches the Corefile, but CoreDNS reload defaults to ~30s.
Until then clusterset.local misses the lighthouse forward and NXDOMAIN
is cached, delaying the first connectivity test after cluster start.
Restart CoreDNS once lighthouse is ready so the forward applies immediately.
Restarting CoreDNS adds 2 seconds delay to submariner start, but the
test takes now 20 seconds instead of 75 seconds. The actual connectivity
check takes now 0.1s instead of 54s (500x times faster).
Example run:
2026-08-07 04:33:49,876 DEBUG [hub/0] Restarting CoreDNS on cluster 'dr1'
2026-08-07 04:33:49,937 DEBUG [hub/0] deployment.apps/coredns restarted
2026-08-07 04:33:49,938 DEBUG [hub/0] Restarting CoreDNS on cluster 'dr2'
2026-08-07 04:33:50,011 DEBUG [hub/0] deployment.apps/coredns restarted
2026-08-07 04:33:50,012 DEBUG [hub/0] Waiting for CoreDNS on cluster 'dr1'
2026-08-07 04:33:50,066 DEBUG [hub/0] Waiting for deployment "coredns" rollout to finish: 0 of 1 updated replicas are available...
2026-08-07 04:33:51,255 DEBUG [hub/0] deployment "coredns" successfully rolled out
2026-08-07 04:33:51,257 DEBUG [hub/0] Waiting for CoreDNS on cluster 'dr2'
2026-08-07 04:33:51,333 DEBUG [hub/0] Waiting for deployment "coredns" rollout to finish: 0 of 1 updated replicas are available...
2026-08-07 04:33:51,654 DEBUG [hub/0] deployment "coredns" successfully rolled out
...
2026-08-07 04:34:06,531 DEBUG [hub/0] Accessing 'nginx.ns1.svc.clusterset.local.' in cluster 'dr2'
2026-08-07 04:34:06,635 DEBUG [hub/0] Access completed in 0.104 seconds
2026-08-07 04:34:06,635 DEBUG [hub/0] Accessing 'nginx.ns2.svc.clusterset.local.' in cluster 'dr1'
2026-08-07 04:34:06,730 DEBUG [hub/0] Access completed in 0.095 seconds
Assisted-by: Cursor/Cursor Grok 4.5 High
Signed-off-by: Nir Soffer <nsoffer@redhat.com>1 parent 9e37b02 commit 0cb89b1
1 file changed
Lines changed: 33 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
109 | 142 | | |
110 | 143 | | |
111 | 144 | | |
| |||
0 commit comments