From 97455110ec03db82501c4c58f9b01196bacfcf20 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 26 Aug 2024 14:19:20 -0500 Subject: [PATCH] Switch Reloader to Helm deployment --- .../my-cluster/reloader/kustomization.yaml | 6 ++++-- clusters/my-cluster/reloader/namespace.yaml | 5 +++++ clusters/my-cluster/reloader/release.yaml | 20 +++++++++++++++++++ clusters/my-cluster/reloader/repository.yaml | 9 +++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 clusters/my-cluster/reloader/namespace.yaml create mode 100644 clusters/my-cluster/reloader/release.yaml create mode 100644 clusters/my-cluster/reloader/repository.yaml diff --git a/clusters/my-cluster/reloader/kustomization.yaml b/clusters/my-cluster/reloader/kustomization.yaml index 0507b21..72f17e8 100644 --- a/clusters/my-cluster/reloader/kustomization.yaml +++ b/clusters/my-cluster/reloader/kustomization.yaml @@ -1,6 +1,8 @@ --- apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization - +namespace: reloader resources: - - https://github.com/stakater/Reloader/deployments/kubernetes?ref=v1.0.121 + - namespace.yaml + - repository.yaml + - release.yaml diff --git a/clusters/my-cluster/reloader/namespace.yaml b/clusters/my-cluster/reloader/namespace.yaml new file mode 100644 index 0000000..bef5015 --- /dev/null +++ b/clusters/my-cluster/reloader/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: reloader diff --git a/clusters/my-cluster/reloader/release.yaml b/clusters/my-cluster/reloader/release.yaml new file mode 100644 index 0000000..50f7003 --- /dev/null +++ b/clusters/my-cluster/reloader/release.yaml @@ -0,0 +1,20 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: reloader + namespace: reloader +spec: + chart: + spec: + chart: reloader + sourceRef: + kind: HelmRepository + name: stakater + interval: 50m + install: + remediation: + retries: 3 + values: + reloader: + isArgoRollouts: true diff --git a/clusters/my-cluster/reloader/repository.yaml b/clusters/my-cluster/reloader/repository.yaml new file mode 100644 index 0000000..850ec4e --- /dev/null +++ b/clusters/my-cluster/reloader/repository.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: stakater + namespace: reloader +spec: + interval: 5m + url: https://stakater.github.io/stakater-charts