I was going through a Kubernetes resource manifest file that creates a namespace –
apiVersion: v1
kind: Namespace
metadata:
labels:
kubernetes.io/metadata.name: argocd
name: argocd
name: argocd
I see a special label here kubernetes.io/metadata.name: argocd
.
My questions:
- Is this a kind of any pattern or convention?
- Is the label’s name defined so because it can be used by some other resource? If yes, then what is the purpose?
- Why is the label duplicating the other
name
label, and also the name of the namespace? Is there any convention for this?
What did I try?
There is a discussion on this page that I am not sure that I understand it correctly.
1