Register and document annotations on Secret that relate to ServiceAccount (#32005)

* Registered secret annotation

Signed-off-by: Manish Kumar <manish.kumar1@india.nec.com>

* Update content/en/docs/reference/labels-annotations-taints/_index.md

Co-authored-by: Tim Bannister <tim@scalefactory.com>

* Update content/en/docs/reference/labels-annotations-taints/_index.md

Co-authored-by: Tim Bannister <tim@scalefactory.com>

* Updated Secret type

Co-authored-by: Tim Bannister <tim@scalefactory.com>
This commit is contained in:
Manish Kumar
2022-05-17 20:10:27 +05:30
committed by GitHub
parent a3095962e8
commit e7300a151c
@@ -334,6 +334,24 @@ Used on: Service
Kubernetes uses this label to differentiate multiple Services. Used currently for `ELB`(Elastic Load Balancer) only.
### kubernetes.io/service-account.name
Example: `kubernetes.io/service-account.name: "sa-name"`
Used on: Secret
This annotation records the {{< glossary_tooltip term_id="name" text="name">}} of the
ServiceAccount that the token (stored in the Secret of type `kubernetes.io/service-account-token`) represents.
### kubernetes.io/service-account.uid
Example: `kubernetes.io/service-account.uid: da68f9c6-9d26-11e7-b84e-002dc52800da`
Used on: Secret
This annotation records the {{< glossary_tooltip term_id="uid" text="unique ID" >}} of the
ServiceAccount that the token (stored in the Secret of type `kubernetes.io/service-account-token`) represents.
### endpointslice.kubernetes.io/managed-by {#endpointslicekubernetesiomanaged-by}
Example: `endpointslice.kubernetes.io/managed-by="controller"`