Skip to content

[cosmetic??] Duplicate "node.kubernetes.io/node" label on Flatcar/bar-metal worker template #1654

Closed

Description

@bugre

Hi,

The bare-metal/flatcar worker template (but checking seems present on other templates also), duplicates the "node.kubernetes.io/node" label.

  • File: tcs-typhoon/bare-metal/flatcar-linux/kubernetes/worker/butane/worker.yaml
  • Duplicate labels are on lines 70 and 77.

The "issue" is mostly cosmetic, as k8s ignores/deduplicates.

Quick diff to show the case:

12:41 $ git diff -U10 bare-metal/flatcar-linux/kubernetes/worker/butane/worker.yaml
diff --git a/bare-metal/flatcar-linux/kubernetes/worker/butane/worker.yaml b/bare-metal/flatcar-linux/kubernetes/worker/butane/worker.yaml
index c294bbdb..c4cb713e 100644
--- a/bare-metal/flatcar-linux/kubernetes/worker/butane/worker.yaml
+++ b/bare-metal/flatcar-linux/kubernetes/worker/butane/worker.yaml
@@ -60,21 +60,20 @@ systemd:
           -v /var/lib/containerd:/var/lib/containerd \
           -v /var/lib/kubelet:/var/lib/kubelet:rshared \
           -v /var/log:/var/log \
           -v /opt/cni/bin:/opt/cni/bin \
           $${KUBELET_IMAGE} \
           --bootstrap-kubeconfig=/etc/kubernetes/kubeconfig \
           --config=/etc/kubernetes/kubelet.yaml \
           --container-runtime-endpoint=unix:///run/containerd/containerd.sock \
           --hostname-override=${domain_name} \
           --kubeconfig=/var/lib/kubelet/kubeconfig \
-          --node-labels=node.kubernetes.io/node \
           %{~ for label in compact(split(",", node_labels)) ~}
           --node-labels=${label} \
           %{~ endfor ~}
           %{~ for taint in compact(split(",", node_taints)) ~}
           --register-with-taints=${taint} \
           %{~ endfor ~}
           --node-labels=node.kubernetes.io/node
         ExecStart=docker logs -f kubelet

I can generate a PR if it helps.

Activity

  1. added a commit that references this issue on May 24, 2026
    34f7f4d
  2. added a commit that references this issue on Nov 20, 2026
    9af3f09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions