Namespaces as compound parents, Deployment/StatefulSet/DaemonSet/CronJob as workload nodes, Service/Ingress with edges derived from label-selector matching and backend references, plus a physical-node layer via pod placement. Click-through to live YAML manifest per node.
15 lines
307 B
Docker
15 lines
307 B
Docker
FROM golang:1.22-alpine AS build
|
|
WORKDIR /src
|
|
COPY go.mod go.sum* ./
|
|
RUN go mod download
|
|
COPY main.go ./
|
|
RUN CGO_ENABLED=0 go build -o /cluster-map .
|
|
|
|
FROM alpine:3.20
|
|
RUN adduser -D -u 10001 app
|
|
COPY --from=build /cluster-map /cluster-map
|
|
COPY static /static
|
|
USER app
|
|
WORKDIR /
|
|
ENTRYPOINT ["/cluster-map"]
|