Skip to main content

Kubernetes annotations and labels

This topic describes how to use annotations and labels to select objects you defined in your manifests.


To see annotations in action, see Deploy Manifests Separately using Apply Step and Ignore a Manifest. Annotations are a way to pass additional metadata for resources to Harness. For a description of Annotations, go to Annotations from Kubernetes.

The following Annotations can be put on resource specifications in the Harness Service Manifests section.



The following labels are applied by Harness during deployment.

LabelValueUsage nameApplied on pods. Harness uses a release name for tracking releases, rollback, etc. You can supply a release name in an Environment's Infrastructure Definition Release Name field. | stableApplied on pods in a Canary deployment. | greenApplied on pods in a Blue/Green deployment.

Next steps