mirror of
https://github.com/truenas/charts.git
synced 2026-06-16 23:19:15 +08:00
1.1 KiB
1.1 KiB
Labels
Labels can be defined in nearly all resources.
Key: podLabels
Info:
- Type:
dict - Default:
{} - Helm Template:
- Key: ❌
- Value: ✅
Can be defined in:
.Values.podLabels
Adds the defined labels to the Pod
Examples:
podLabels:
key: value
key: "{{ .Values.some.path }}"
Key: controller.labels
Info:
- Type:
dict - Default:
{} - Helm Template:
- Key: ❌
- Value: ✅
Can be defined in:
.Values.controller.labels
Adds the defined labels to the controller (eg Deployment, StatefulSet, DaemonSet, Job, CronJob)
Examples:
controller:
labels:
key: value
key: "{{ .Values.some.path }}"
Key: global.labels
Info:
- Type:
dict - Default:
{} - Helm Template:
- Key: ❌
- Value: ✅
Can be defined in:
.Values.global.labels
Adds the defined labels to all the resources
Examples:
global:
labels:
key: value
key: "{{ .Values.some.path }}"
Kubernetes Documentation: