fix(ci): use explicit IPv4 DNS for gitea-runner

The home network has IPv6 DNS that's unreachable from the k3s VM.
Changed from dns_policy=Default to dns_policy=None with explicit
Google DNS servers (8.8.8.8, 8.8.4.4) to fix image pulls.
This commit is contained in:
Thomas Hallock
2026-01-25 13:54:32 -06:00
parent 0422c7c7ff
commit d53a429a5a

View File

@@ -663,8 +663,12 @@ resource "kubernetes_deployment" "gitea_runner" {
}
spec {
# Use Default DNS policy to use node's DNS (bypasses broken coredns)
dns_policy = "Default"
# Use explicit DNS to avoid IPv6 issues on home network
dns_policy = "None"
dns_config {
nameservers = ["8.8.8.8", "8.8.4.4"]
searches = ["gitea.svc.cluster.local", "svc.cluster.local", "cluster.local"]
}
# Also add hostAliases for internal services since we're not using cluster DNS
host_aliases {