From 7579873f0412439395ada6813893a057f7ddb20b Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 5 Aug 2024 21:45:24 -0500 Subject: [PATCH] Add Traefik --- clusters/my-cluster/traefik/kustomization.yaml | 8 ++++++++ clusters/my-cluster/traefik/namespace.yaml | 5 +++++ clusters/my-cluster/traefik/release.yaml | 18 ++++++++++++++++++ clusters/my-cluster/traefik/repository.yaml | 9 +++++++++ 4 files changed, 40 insertions(+) create mode 100644 clusters/my-cluster/traefik/kustomization.yaml create mode 100644 clusters/my-cluster/traefik/namespace.yaml create mode 100644 clusters/my-cluster/traefik/release.yaml create mode 100644 clusters/my-cluster/traefik/repository.yaml diff --git a/clusters/my-cluster/traefik/kustomization.yaml b/clusters/my-cluster/traefik/kustomization.yaml new file mode 100644 index 0000000..283b45d --- /dev/null +++ b/clusters/my-cluster/traefik/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: traefik +resources: + - namespace.yaml + - repository.yaml + - release.yaml diff --git a/clusters/my-cluster/traefik/namespace.yaml b/clusters/my-cluster/traefik/namespace.yaml new file mode 100644 index 0000000..0aa5938 --- /dev/null +++ b/clusters/my-cluster/traefik/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: traefik diff --git a/clusters/my-cluster/traefik/release.yaml b/clusters/my-cluster/traefik/release.yaml new file mode 100644 index 0000000..72f56a9 --- /dev/null +++ b/clusters/my-cluster/traefik/release.yaml @@ -0,0 +1,18 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: traefik + namespace: traefik +spec: + releaseName: traefik + chart: + spec: + chart: traefik + sourceRef: + kind: HelmRepository + name: traefik + interval: 50m + install: + remediation: + retries: 3 diff --git a/clusters/my-cluster/traefik/repository.yaml b/clusters/my-cluster/traefik/repository.yaml new file mode 100644 index 0000000..98047eb --- /dev/null +++ b/clusters/my-cluster/traefik/repository.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: traefik + namespace: traefik +spec: + interval: 5m + url: https://traefik.github.io/charts