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