From 8f394b2585318d1feafba7be32501e03c17532e4 Mon Sep 17 00:00:00 2001 From: Morten Olsen Date: Thu, 4 Dec 2025 10:01:48 +0100 Subject: [PATCH] feat: add reloader --- .../charts/baikal/templates/http-service.yaml | 11 -------- .../templates/virtual-service copy.yaml | 18 +++++++++++++ .../charts/monitor/templates/reloader.yaml | 26 +++++++++++++++++++ 3 files changed, 44 insertions(+), 11 deletions(-) delete mode 100644 apps/charts/baikal/templates/http-service.yaml create mode 100644 apps/charts/baikal/templates/virtual-service copy.yaml create mode 100644 foundation/charts/monitor/templates/reloader.yaml diff --git a/apps/charts/baikal/templates/http-service.yaml b/apps/charts/baikal/templates/http-service.yaml deleted file mode 100644 index 15b1989..0000000 --- a/apps/charts/baikal/templates/http-service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: homelab.mortenolsen.pro/v1 -kind: HttpService -metadata: - name: "{{ .Release.Name }}" -spec: - environment: "{{ .Values.globals.environment }}" - subdomain: "{{ .Values.subdomain }}" - destination: - host: "{{ .Release.Name }}" - port: - number: 80 diff --git a/apps/charts/baikal/templates/virtual-service copy.yaml b/apps/charts/baikal/templates/virtual-service copy.yaml new file mode 100644 index 0000000..0af9b24 --- /dev/null +++ b/apps/charts/baikal/templates/virtual-service copy.yaml @@ -0,0 +1,18 @@ +apiVersion: networking.istio.io/v1 +kind: VirtualService +metadata: + name: "{{ .Release.Name }}" + namespace: "{{ .Release.Namespace }}" +spec: + gateways: + - "{{ .Values.globals.istio.gateway }}" + - mesh + hosts: + - "{{ .Values.subdomain }}.{{ .Values.globals.domain }}" + - mesh + http: + - route: + - destination: + host: "{{ .Release.Name }}" + port: + number: 80 diff --git a/foundation/charts/monitor/templates/reloader.yaml b/foundation/charts/monitor/templates/reloader.yaml new file mode 100644 index 0000000..f14c559 --- /dev/null +++ b/foundation/charts/monitor/templates/reloader.yaml @@ -0,0 +1,26 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: reloader-operator + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: foundation + server: https://kubernetes.default.svc + project: foundation + source: + repoURL: https://stakater.github.io/stakater-charts + targetRevision: 2.2.5 + chart: reloader + helm: {} + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - ServerSideApply=true + - ApplyOutOfSyncOnly=true + - CreateNamespace=true