Update 'content/posts/kubernetes-label-length.md'

This commit is contained in:
Marcus Noble 2021-04-20 14:16:18 +00:00
parent b4ff1b21a4
commit e8c7513a4d

View File

@ -8,7 +8,7 @@ images:
- /images/kubernetes-label-length.gif - /images/kubernetes-label-length.gif
--- ---
It turns out that labels _values_ in Kubernetes have a limit of 63 characters! It turns out that label _values_ in Kubernetes have a limit of 63 characters!
I discovered this today when none of my nodes seemed to be connecting to the control plane. Eventually discovered the hostname of the node was longer than 63 characters (mainly due to multiple subdomain levels) and so the `kubernetes.io/hostname` label being automtically added to the node was causing Kubernetes to reject it. I discovered this today when none of my nodes seemed to be connecting to the control plane. Eventually discovered the hostname of the node was longer than 63 characters (mainly due to multiple subdomain levels) and so the `kubernetes.io/hostname` label being automtically added to the node was causing Kubernetes to reject it.