initial: graph backend (client-go) + cytoscape.js topology frontend
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.
This commit is contained in:
+14
@@ -0,0 +1,14 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user