Initial commit: dns-webhook MutatingAdmissionWebhook
Build dns-webhook Image / build (push) Has been cancelled

Rewrites dnsPolicy+dnsConfig on ClusterFirst pods to distribute
queries across 3 randomly-selected auth-dns nameservers with
edns0/rotate/ndots:5. Includes Gitea CI workflow and README.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Donavan Fritz
2026-04-24 17:14:56 -05:00
commit 01e4b58c91
6 changed files with 553 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
FROM golang:1.26-alpine AS builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY *.go ./
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /dns-webhook .
FROM gcr.io/distroless/static:nonroot
COPY --from=builder /dns-webhook /dns-webhook
ENTRYPOINT ["/dns-webhook"]