From cca400249d33bea8ad3d1918e7a8d49f9cc3c19b Mon Sep 17 00:00:00 2001 From: Randall Mason Date: Sun, 27 Aug 2023 08:40:45 +0000 Subject: [PATCH] allow annotations on stack nginx service This allows choosing an IP, for example. Or getting an SSL cert --- tinkerbell/stack/templates/nginx.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tinkerbell/stack/templates/nginx.yaml b/tinkerbell/stack/templates/nginx.yaml index eefd99a2..2af25c02 100644 --- a/tinkerbell/stack/templates/nginx.yaml +++ b/tinkerbell/stack/templates/nginx.yaml @@ -139,6 +139,10 @@ metadata: app: {{ .Values.stack.name }} name: {{ .Values.stack.name }} namespace: {{ .Release.Namespace | quote }} + annotations: + {{- with .Values.stack.service.annotations | default dict }} + {{ toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.stack.service.type }} {{- if eq .Values.stack.service.type "LoadBalancer" }}