Initial commit: dns-webhook MutatingAdmissionWebhook
Build dns-webhook Image / build (push) Has been cancelled
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:
+10
@@ -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"]
|
||||
Reference in New Issue
Block a user