Skip to content
Weave templates

Kubernetes cluster (grouped)

Cluster container with namespace + node containers; ingress → services → pods.

Template previewWeave
Rendering…

Make it your own.

{
  "nodes": [
    { "id":"cl","type":"container","label":"Cluster","x":40,"y":20,"width":1180,"height":540,"fill":"rgba(241,245,249,0.4)","stroke":"#475569" },
    { "id":"ns","type":"container","label":"Namespace: api","x":80,"y":80,"width":1100,"height":220,"fill":"rgba(219,234,254,0.4)","stroke":"#2563eb" },
    { "id":"nd1","type":"container","label":"Node 1","x":120,"y":340,"width":320,"height":200,"fill":"rgba(237,233,254,0.4)","stroke":"#6d28d9" },
    { "id":"nd2","type":"container","label":"Node 2","x":480,"y":340,"width":320,"height":200,"fill":"rgba(237,233,254,0.4)","stroke":"#6d28d9" },
    { "id":"nd3","type":"container","label":"Node 3","x":840,"y":340,"width":320,"height":200,"fill":"rgba(237,233,254,0.4)","stroke":"#6d28d9" },
    { "id":"ing","type":"hexagon","label":"Ingress","x":120,"y":140,"fill":"#fed7aa","stroke":"#c2410c" },
    { "id":"svc","type":"rect","label":"Service: api","x":320,"y":140,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"dep","type":"rect","label":"Deployment","x":520,"y":140,"fill":"#dbeafe","stroke":"#2563eb" },
    { "id":"cm","type":"document","label":"ConfigMap","x":760,"y":140,"fill":"#fef3c7","stroke":"#a16207" },
    { "id":"sec","type":"document","label":"Secret","x":960,"y":140,"fill":"#fee2e2","stroke":"#b91c1c" },
    { "id":"p1","type":"rounded","label":"Pod","x":170,"y":420,"fill":"#dcfce7","stroke":"#15803d" },
    { "id":"p2","type":"rounded","label":"Pod","x":300,"y":420,"fill":"#dcfce7","stroke":"#15803d" },
    { "id":"p3","type":"rounded","label":"Pod","x":530,"y":420,"fill":"#dcfce7","stroke":"#15803d","motion":"ping" },
    { "id":"p4","type":"rounded","label":"Pod","x":660,"y":420,"fill":"#dcfce7","stroke":"#15803d" },
    { "id":"p5","type":"rounded","label":"Pod","x":890,"y":420,"fill":"#dcfce7","stroke":"#15803d" },
    { "id":"p6","type":"rounded","label":"Pod","x":1020,"y":420,"fill":"#dcfce7","stroke":"#15803d" }
  ],
  "edges": [
    { "id":"e1","source":"ing","target":"svc" },
    { "id":"e2","source":"svc","target":"dep" },
    { "id":"e3","source":"dep","target":"p1" },
    { "id":"e4","source":"dep","target":"p2" },
    { "id":"e5","source":"dep","target":"p3" },
    { "id":"e6","source":"dep","target":"p4" },
    { "id":"e7","source":"dep","target":"p5" },
    { "id":"e8","source":"dep","target":"p6" },
    { "id":"e9","source":"cm","target":"dep" },
    { "id":"e10","source":"sec","target":"dep" }
  ]
}