From 1433bb5dfb80630bb2369cd187cbb768cc385d1a Mon Sep 17 00:00:00 2001 From: kjuulh Date: Mon, 9 May 2022 13:15:50 +0200 Subject: [PATCH] Add sources --- clank/apps/prod/wishlist/app.yaml | 1 + clank/clusters/platform/platform.yaml | 12 ++++++++++++ clank/platform/kustomization.yaml | 5 +++++ clank/platform/reflector/kustomization.yaml | 0 clank/platform/reflector/namespace.yaml | 4 ++++ clank/platform/reflector/release.yaml | 18 ++++++++++++++++++ clank/platform/sources/emberstack.yaml | 7 +++++++ clank/platform/sources/kustomization.yaml | 5 +++++ .../traefik/helm-chart-config.traefik.yaml | 2 +- clank/platform/traefik/ingress.yaml | 2 +- 10 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 clank/clusters/platform/platform.yaml create mode 100644 clank/platform/kustomization.yaml create mode 100644 clank/platform/reflector/kustomization.yaml create mode 100644 clank/platform/reflector/namespace.yaml create mode 100644 clank/platform/reflector/release.yaml create mode 100644 clank/platform/sources/emberstack.yaml create mode 100644 clank/platform/sources/kustomization.yaml diff --git a/clank/apps/prod/wishlist/app.yaml b/clank/apps/prod/wishlist/app.yaml index 20ab536..6f8410e 100644 --- a/clank/apps/prod/wishlist/app.yaml +++ b/clank/apps/prod/wishlist/app.yaml @@ -46,6 +46,7 @@ metadata: spec: ports: - port: 80 + name: http protocol: TCP targetPort: 80 selector: diff --git a/clank/clusters/platform/platform.yaml b/clank/clusters/platform/platform.yaml new file mode 100644 index 0000000..473cda8 --- /dev/null +++ b/clank/clusters/platform/platform.yaml @@ -0,0 +1,12 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1beta2 +kind: Kustomization +metadata: + name: platform + namespace: flux-system +spec: + interval: 10m0s + sourceRef: + kind: GitRepository + name: flux-system + path: ./platform + prune: true diff --git a/clank/platform/kustomization.yaml b/clank/platform/kustomization.yaml new file mode 100644 index 0000000..b0771bd --- /dev/null +++ b/clank/platform/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - sources + - reflector diff --git a/clank/platform/reflector/kustomization.yaml b/clank/platform/reflector/kustomization.yaml new file mode 100644 index 0000000..e69de29 diff --git a/clank/platform/reflector/namespace.yaml b/clank/platform/reflector/namespace.yaml new file mode 100644 index 0000000..59b735b --- /dev/null +++ b/clank/platform/reflector/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: reflector diff --git a/clank/platform/reflector/release.yaml b/clank/platform/reflector/release.yaml new file mode 100644 index 0000000..c2fdf73 --- /dev/null +++ b/clank/platform/reflector/release.yaml @@ -0,0 +1,18 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: reflector +spec: + releaseName: reflector + chart: + spec: + chart: reflector + sourceRef: + kind: HelmRepository + name: emberstack + namespace: flux-system + version: "6.3.47" + interval: 1h0m0s + install: + remediation: + retries: 3 diff --git a/clank/platform/sources/emberstack.yaml b/clank/platform/sources/emberstack.yaml new file mode 100644 index 0000000..bc12a01 --- /dev/null +++ b/clank/platform/sources/emberstack.yaml @@ -0,0 +1,7 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: emberstack +spec: + interval: 30m + url: https://emberstack.github.io/helm-charts diff --git a/clank/platform/sources/kustomization.yaml b/clank/platform/sources/kustomization.yaml new file mode 100644 index 0000000..2aec0cb --- /dev/null +++ b/clank/platform/sources/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: flux-system +resources: + - emberstack.yaml diff --git a/clank/platform/traefik/helm-chart-config.traefik.yaml b/clank/platform/traefik/helm-chart-config.traefik.yaml index ac37897..f0c1e8b 100644 --- a/clank/platform/traefik/helm-chart-config.traefik.yaml +++ b/clank/platform/traefik/helm-chart-config.traefik.yaml @@ -30,4 +30,4 @@ spec: - "wishlist" # IP used for Kubernetes Ingress endpoints publishedService: - enabled: false + enabled: true diff --git a/clank/platform/traefik/ingress.yaml b/clank/platform/traefik/ingress.yaml index bcd4923..04bb13a 100644 --- a/clank/platform/traefik/ingress.yaml +++ b/clank/platform/traefik/ingress.yaml @@ -21,7 +21,7 @@ apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: wishlist-ingress - namespace: kube-system + namespace: wishlist spec: entryPoints: - web