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

查看:22
本文介绍了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.

推荐答案

As 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天全站免登陆