kube-hetzner / terraform-hcloud-kube-hetzner

Optimized and Maintenance-free Kubernetes on Hetzner Cloud in one command!
MIT License
2.41k stars 372 forks source link

[Bug]: Custom labels not getting added to nodes #1492

Closed hestonravenhood closed 1 month ago

hestonravenhood commented 1 month ago

Description

Hi, maybe I'm doing something wrong, but I'm not seeing any of below test labels get added to my agent nodes

Kube.tf file

agent_nodepools = [
      {
        name        = "agent-arm",
        server_type = "cax11",
        location    = "fsn1",
        labels      = [
          "node.kubernetes.io/test=initial",
          "custom-node-label=tobeoverridden",
          "testing-labels=a1"
        ],
        taints      = [],
        nodes = {
          "1" : {
            labels = [
              "node.kubernetes.io/test=changed",
              "custom-node-label=testlabel",
              "testing-labels=a1"
            ]
          },
          "2" : {
            labels = [
              "custom-node-label=agent-two",
            ]
          },
          "3" : {
            labels = [
              "custom-node-label=agent-three",
            ]
          }
        }
      },
    ]

Screenshots

No response

Platform

linux

hestonravenhood commented 1 month ago

Closing as I can see the labels correctly tied to nodes in cluster when using "kubectl describe node -A". I was earlier expecting the labels to show in the hetzner dashboard > servers > node "edit labels" view, but perhaps that's a different kind of label.