Add labels to your resources ΒΆ

This guide shows you how to add labels to your resources, either through your manifest or through Nais Console.

Add labels in your manifest ΒΆ

Add your labels under metadata.labels, using the labels.nais.io/ prefix:

yaml

The labels are kept verbatim and propagated to the Kubernetes resources that your workload owns.

Add labels in Nais Console ΒΆ

You can add and edit labels from Console for Valkey, OpenSearch, Config, and Secret.

  1. Open Nais Console and navigate to the resource you want to label.
  2. Find the Labels section in the sidebar and click the edit icon.
  3. Enter a key and a value. The labels.nais.io/ prefix is added automatically.
  4. Click Add label to add more labels.
  5. Click Save.

πŸ’‘ Learn more about labels

πŸ“š Label reference