From 3ecf2db96252bfa4d6c062002a95e73ee21d263a Mon Sep 17 00:00:00 2001 From: Jacob Weinstock Date: Wed, 23 Oct 2024 20:53:28 -0600 Subject: [PATCH] Add nginx service annotations: Allows customization for things like load balancer. Signed-off-by: Jacob Weinstock --- tinkerbell/stack/templates/nginx.yaml | 4 ++++ tinkerbell/stack/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/tinkerbell/stack/templates/nginx.yaml b/tinkerbell/stack/templates/nginx.yaml index 88cdd9f0..91d1fe38 100644 --- a/tinkerbell/stack/templates/nginx.yaml +++ b/tinkerbell/stack/templates/nginx.yaml @@ -169,6 +169,10 @@ metadata: app: {{ .Values.stack.name }} name: {{ .Values.stack.name }} namespace: {{ .Release.Namespace | quote }} + annotations: + {{- with .Values.stack.service.annotations }} + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.stack.service.type }} {{- if eq .Values.stack.service.type "LoadBalancer" }} diff --git a/tinkerbell/stack/values.yaml b/tinkerbell/stack/values.yaml index 409bc739..34d8c6ad 100644 --- a/tinkerbell/stack/values.yaml +++ b/tinkerbell/stack/values.yaml @@ -4,6 +4,7 @@ stack: service: enabled: true type: LoadBalancer + annotations: {} selector: app: tink-stack nodeSelector: {}