Skip to content

Commit 4b997c8

Browse files
committed
Add label-based clustering and change color for label-based clusters
1 parent 706107f commit 4b997c8

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,9 +455,10 @@ With **KubeDiagrams**, Kubernetes resources can be clustered within the architec
455455
| `chart` | Chart: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-EBF3E7) | No |
456456
| `app.kubernetes.io/name` | K8s Application: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-ECE8F6) | Yes |
457457
| `app` | Application: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-ECE8F6) | No |
458+
| `tier` | Tier: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-ECE8F6) | No |
458459
| `app.kubernetes.io/component` | K8s Component: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-FDF7E3) | Yes |
460+
| `component` | Component: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-FDF7E3) | No |
459461
| `service` | Microservice: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-FDF7E3) | No |
460-
| `tier` | Tier: `label value` | ![Static Badge](https://img.shields.io/badge/%20%20%20%20%20%20%20%20%20%20-FDF7E3) | No |
461462

462463
Resource clustering could be also annotation-based, i.e. based on `metadata.annotations` keys. Following table lists the predefined mappings between annotation keys, cluster titles, and background colors as defined in the [bin/kube-diagrams.yml](https://github.com/philippemerle/KubeDiagrams/blob/main/bin/kube-diagrams.yaml#L77) file.
463464

bin/kube-diagrams.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,23 @@ clusters:
5959
recommended: false
6060
graph_attr:
6161
bgcolor: "#ECE8F6"
62+
- label: tier
63+
title: Tier
64+
recommended: false
65+
graph_attr:
66+
bgcolor: "#ECE8F6"
6267
- label: app.kubernetes.io/component
6368
title: K8s Component
6469
recommended: true
6570
graph_attr:
6671
bgcolor: "#FDF7E3"
67-
- label: service
68-
title: Microservice
72+
- label: component
73+
title: Component
6974
recommended: false
7075
graph_attr:
7176
bgcolor: "#FDF7E3"
72-
- label: tier
73-
title: Tier
77+
- label: service
78+
title: Microservice
7479
recommended: false
7580
graph_attr:
7681
bgcolor: "#FDF7E3"

examples/towards5gs-helm/KubeDiagrams.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
clusters:
33
- label: nf
44
title: Network Function
5-
- label: component
6-
title: Component

0 commit comments

Comments
 (0)