kubernetes标签名称63个字符限制 [英] kubernetes label name 63 character limit

查看:156
本文介绍了kubernetes标签名称63个字符限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://kubernetes.io/docs/中所述概念/概述/与对象一起使用/标签/ 标签名称和值不能超过63个字符.有人知道导致此限制的原因吗?我不是在寻找代码条件,而是选择此值的真正原因.

As explained at https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ labels name and value have limit of 63 characters. Does anyone know what drives this limit? I am not looking for code condition but the real reason behind choosing this value.

推荐答案

作为Suresh Vishnoi 写道,这是基于 RFC-1123 的全局限制.

As Suresh Vishnoi wrote, it is a global restriction based on RFC-1123.

此处是一个简单的解释的限制.

Here is a simple explanation of this restriction.

Kubernetes中有一个提交,用于验证标签的长度.

There is a commit in Kubernetes which provides the validation of labels' length.

这篇关于kubernetes标签名称63个字符限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆