mirror of
https://github.com/truenas/charts.git
synced 2026-06-16 06:58:45 +08:00
1.8 KiB
1.8 KiB
Annotations
Annotations can be defined in nearly all resources.
Key: addAnnotations
Info:
-
Type:
dict -
Default:
addAnnotations: traefik: true metallb: true -
Helm Template: ❌
Can be defined in:
.Values.addAnnotations
Enables or disables addition of annotations in Service objects.
metallb: true adds metallb.universe.tf/allow-shared-ip: $FULLNAME annotation.
Only when service type is LoadBalancer.
traefik: true adds traefik.ingress.kubernetes.io/service.serversscheme: https
annotation. Only when service protocol is HTTPS
Examples:
addAnnotations:
traefik: true
metallb: true
Key: podAnnotations
Info:
- Type:
dict - Default:
{} - Helm Template:
- Key: ❌
- Value: ✅
Can be defined in:
.Values.podAnnotations
Adds the defined annotations to the Pod
Examples:
podAnnotations:
key: value
key: "{{ .Values.some.path }}"
Key: controller.annotations
Info:
- Type:
dict - Default:
{} - Helm Template:
- Key: ❌
- Value: ✅
Can be defined in:
.Values.controller.annotations
Adds the defined annotations to the controller (eg Deployment, StatefulSet, DaemonSet, Job, CronJob)
Examples:
controller:
annotations:
key: value
key: "{{ .Values.some.path }}"
Key: global.annotations
Info:
- Type:
dict - Default:
{} - Helm Template:
- Key: ❌
- Value: ✅
Can be defined in:
.Values.global.annotations
Adds the defined annotations to all the resources
Examples:
global:
annotations:
key: value
key: "{{ .Values.some.path }}"
Kubernetes Documentation: