rancher/k3k

Inconsistencies in labels for cluster pods

Open

#531 创建于 2025年10月27日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Go (77 fork)auto 404
good first issueteam/collie

仓库指标

Star
 (886 star)
PR 合并指标
 (PR 指标待抓取)

描述

If I check the configuration for the server pod, I get the following:

kind: Pod
metadata:
  labels:
    cluster: mycluster
    role: server

But for the kubelet pod, it shows:

kind: Pod
metadata:
  labels:
    cluster: mycluster
    mode: shared
    type: agent

I was thinking maybe it would be useful to change type: agent to role: agent for consistency, perhaps? Also, maybe adding the mode label to the server, though I do not know if that's useful?

I would be willing to implement this myself if I could get a couple pointers in the right direction.

贡献者指南