How to identify the default annotations added by the Kubernetes ? How to differentiate the default and custom annotations ?
Hi @dnpuneeth3,
Which k8s object you’re mentioning?
On which course you’re learning?
Please help to provide more context so that we can well support.
Happy learning,
Trung.
Pod object.
Kodekloud CKAD course.
And also referring to the Kubernetes in Action book.
Hi @dnpuneeth3,
Both annotations & labels serve the same purpose, adding metadata to the owner object (pod in your specific case).
You can find the list of default annotations here: Well-Known Labels, Annotations and Taints | Kubernetes
For custom annotations, it is key:value
under annotations
attribute, just like labels
.
How to differentiate: whatever annotations are not in the default list (Well-Known Labels, Annotations and Taints | Kubernetes) are classified as custom.
More about annotations: Annotations | Kubernetes
One more thing, if you have not yet joined our Slack community, please do it, we have different channels for each learning course with thousands of members ready to support you with any questions.
Happy learning,
Trung.
Thank you . Is there any command to identify custom or default annotations instead of checking the documentation manually.
I have joined the slack community and not active on that as I did not get the replies to my questions.
Hi @dnpuneeth3,
There is no command as you mentioned.
You can tag me in the CKA channel if you don’t receive support.
Happy learning,
Trung.