Kubernetes Pods support labels and annotations. These are often used to interact with in-cluster operators. For example, collecting metrics in Prometheus or auto-discovery of services for a Gateway.
Depending on how this feature is implemented by the Workload Profile itself, this may only make up a subset of the labels and annotations on the Pod.
To specify labels and annotations in Humanitec:
UI
Start on the Workload Details Page and navigate to the labels & annotations section. If you haven't created a Workload yet, please start here.
Click on the labels & annotations card. This will open a configuration overlay.
You now have the option to add labels or annotations by clicking on the + Add label or + Add annotation buttons. Both are defined as key-value pairs but validated slightly differently. Check the requirements below for further information: