Fix DNS server: Remove kubernetes plugin, use TCP health checks

This commit is contained in:
govardhan
2025-11-15 19:30:59 +05:30
parent 997ce28c60
commit 49fbed8380

View File

@ -47,15 +47,14 @@ data:
prometheus :9153 prometheus :9153
} }
# Internal Kubernetes DNS # Internal services (optional - for internal cluster DNS)
cluster.local:53 { # Disabled kubernetes plugin to avoid RBAC issues
errors # cluster.local:53 {
kubernetes cluster.local in-addr.arpa ip6.arpa { # errors
pods insecure # kubernetes cluster.local {
fallthrough in-addr.arpa ip6.arpa # pods insecure
} # }
prometheus :9153 # }
}
# Forward all other queries to upstream DNS # Forward all other queries to upstream DNS
.:53 { .:53 {
@ -241,25 +240,15 @@ spec:
name: metrics name: metrics
protocol: TCP protocol: TCP
livenessProbe: livenessProbe:
httpGet: tcpSocket:
path: /health port: 53
port: 8080 initialDelaySeconds: 15
scheme: HTTP
initialDelaySeconds: 60
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 5
readinessProbe: readinessProbe:
httpGet: tcpSocket:
path: /ready port: 53
port: 8181 initialDelaySeconds: 5
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
resources: resources:
requests: requests:
memory: "256Mi" memory: "256Mi"