Pages

Tuesday, August 7, 2018

Kubernetes - Annotations

Annotations tend to be used for added automation of kubernetes. Some use cases where you want to add an annotation are

Build, release, or image information like timestamps, release IDs, git branch, PR numbers, image hashes, and registry address.

Client library or tool information that can be used for debugging purposes: for example, name, version, and build information.

[root@manja17-I13330 kubenetes-config]# kubectl annotate pods testing-service-s8xzt description="simple annotation"
pod "testing-service-s8xzt" annotated

[root@manja17-I13330 kubenetes-config]# kubectl describe pod testing-service-s8xzt
Name:           testing-service-s8xzt
Namespace:      default
Node:           manja17-i14021/10.131.36.181
Start Time:     Fri, 27 Jul 2018 05:19:06 -0400
Labels:         app=testingService-service
Annotations:    description=simple annotation
Status:         Running
IP:             10.38.0.6
Controlled By:  ReplicationController/testing-service

*****************************

No comments :

Post a Comment