From 515acae89e0082eade33de175b98a51255da9d20 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Tue, 6 Aug 2024 17:12:03 -0500 Subject: [PATCH] Add nginx-ingress --- .../my-cluster/ingress-nginx/kustomization.yaml | 8 ++++++++ clusters/my-cluster/ingress-nginx/namespace.yaml | 5 +++++ clusters/my-cluster/ingress-nginx/release.yaml | 15 +++++++++++++++ clusters/my-cluster/ingress-nginx/repository.yaml | 9 +++++++++ 4 files changed, 37 insertions(+) create mode 100644 clusters/my-cluster/ingress-nginx/kustomization.yaml create mode 100644 clusters/my-cluster/ingress-nginx/namespace.yaml create mode 100644 clusters/my-cluster/ingress-nginx/release.yaml create mode 100644 clusters/my-cluster/ingress-nginx/repository.yaml diff --git a/clusters/my-cluster/ingress-nginx/kustomization.yaml b/clusters/my-cluster/ingress-nginx/kustomization.yaml new file mode 100644 index 0000000..7a01325 --- /dev/null +++ b/clusters/my-cluster/ingress-nginx/kustomization.yaml @@ -0,0 +1,8 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: ingress-nginx +resources: + - namespace.yaml + - repository.yaml + - release.yaml diff --git a/clusters/my-cluster/ingress-nginx/namespace.yaml b/clusters/my-cluster/ingress-nginx/namespace.yaml new file mode 100644 index 0000000..2485512 --- /dev/null +++ b/clusters/my-cluster/ingress-nginx/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: ingress-nginx diff --git a/clusters/my-cluster/ingress-nginx/release.yaml b/clusters/my-cluster/ingress-nginx/release.yaml new file mode 100644 index 0000000..94a1c9d --- /dev/null +++ b/clusters/my-cluster/ingress-nginx/release.yaml @@ -0,0 +1,15 @@ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: ingress-nginx + namespace: ingress-nginx +spec: + chart: + spec: + chart: ingress-nginx + sourceRef: + kind: HelmRepository + name: ingress-nginx + version: 4.11.1 + interval: 12h diff --git a/clusters/my-cluster/ingress-nginx/repository.yaml b/clusters/my-cluster/ingress-nginx/repository.yaml new file mode 100644 index 0000000..982478a --- /dev/null +++ b/clusters/my-cluster/ingress-nginx/repository.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: ingress-nginx + namespace: ingress-nginx +spec: + interval: 5m + url: https://kubernetes.github.io/ingress-nginx