From a55af61aea0f7c992630562716a6deead0320b11 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Wed, 20 Mar 2024 15:19:06 -0400 Subject: [PATCH] feat: expose on tailscale --- ci/chart/templates/service.yaml | 4 ++++ ci/chart/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/ci/chart/templates/service.yaml b/ci/chart/templates/service.yaml index cfdad1ba..0983d58e 100644 --- a/ci/chart/templates/service.yaml +++ b/ci/chart/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ .Values.name }} labels: app.kubernetes.io/name: {{ .Values.name }} + {{- if .Values.service.annotations }} + annotations: + {{- toYaml .Values.service.annotations | nindent 4 }} + {{- end }} spec: type: ClusterIP ports: diff --git a/ci/chart/values.yaml b/ci/chart/values.yaml index 438923a5..664856f3 100644 --- a/ci/chart/values.yaml +++ b/ci/chart/values.yaml @@ -11,6 +11,11 @@ image: pullPolicy: IfNotPresent tag: "" +service: + annotations: + tailscale.com/expose: "true" + tailscale.com/hostname: "{{ .Values.name }}" + resources: requests: cpu: 10m