我的部署和Pods有特定的注释:
部署注释:
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.owners: 'owner1@example.org,owner2@example.org,owner3@example.org'Pod注释:
metadata:
annotations:
pod.owners: 'owner1@example.org,owner2@example.org,owner3@example.org'我不能为这些字符创建标签,因为标签的大小限制为63个字符,并且它们不允许像",“这样的特殊字符。(https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set)
我有一个kube状态度量荚,它从kube中抓取所有的度量。然而,在kube状态度量/度量中,我在任何地方都看不到deployment.owners或pod.owners注释。我看到了kube_namespace_annotations度量,但没有看到任何与部署或pods相关的注释。
注释信息不是被kube状态度量捕获的吗?我怎么才能得到这些信息?
https://stackoverflow.com/questions/53066488
复制相似问题