diff --git a/dashboard/client/api/endpoints/nodes.api.ts b/dashboard/client/api/endpoints/nodes.api.ts index c7f2905e8d3e..862fd831ba1a 100644 --- a/dashboard/client/api/endpoints/nodes.api.ts +++ b/dashboard/client/api/endpoints/nodes.api.ts @@ -109,6 +109,11 @@ export class Node extends KubeObject { const roleLabels = Object.keys(this.metadata.labels).filter(key => key.includes("node-role.kubernetes.io") ).map(key => key.match(/([^/]+$)/)[0]) // all after last slash + + if (this.metadata.labels["kubernetes.io/role"] != undefined) { + roleLabels.push(this.metadata.labels["kubernetes.io/role"]) + } + return roleLabels.join(", ") }