Skip to main content
Version: 0.37

Add labels to Pods created by the Astronomer Helm chart

If your organization enforces Pod labeling for security, workload identity, multi-tenancy, or policy enforcement, you can configure Astronomer Software to automatically add labels to all Pods it creates during installation or upgrades.

Prerequisites

Configure Pod labels

In your Helm chart, add the podLabels configuration to the values.yaml file during your update or installation process.

global:
podLabels:
key: "value"

For example, you can use the label security.level: "high" as a way to identify Pods created by Software using the following code:

global:
podLabels:
security.level: "high"

Find labeled Pods

You can search for Pods using the kubectl command get pods with the label flag. For example, to retrieve a list of all Pods labeled with the key-value pair, security.level=high, you can use the following command:

kubectl -n astronomer get pods -l security.level=high

Was this page helpful?