From af2cd6d00d19ac7b396de5599284ab57f2578b87 Mon Sep 17 00:00:00 2001 From: davide Date: Thu, 19 Feb 2026 21:08:20 +0000 Subject: [PATCH] Add Weave GitOps dashboard + Online Boutique Ingress via GitOps --- clusters/lab/apps/online-boutique.yaml | 25 ++++++++ clusters/lab/infrastructure/weave-gitops.yaml | 62 +++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 clusters/lab/infrastructure/weave-gitops.yaml diff --git a/clusters/lab/apps/online-boutique.yaml b/clusters/lab/apps/online-boutique.yaml index ce04146..703db22 100644 --- a/clusters/lab/apps/online-boutique.yaml +++ b/clusters/lab/apps/online-boutique.yaml @@ -117,3 +117,28 @@ spec: limits: cpu: 100m memory: 256Mi +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: online-boutique + namespace: online-boutique + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod +spec: + ingressClassName: traefik + rules: + - host: shop.davidepiu.xyz + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: frontend + port: + number: 80 + tls: + - hosts: + - shop.davidepiu.xyz + secretName: online-boutique-tls diff --git a/clusters/lab/infrastructure/weave-gitops.yaml b/clusters/lab/infrastructure/weave-gitops.yaml new file mode 100644 index 0000000..652a16a --- /dev/null +++ b/clusters/lab/infrastructure/weave-gitops.yaml @@ -0,0 +1,62 @@ +--- +apiVersion: source.toolkit.fluxcd.io/v1 +kind: HelmRepository +metadata: + name: weave-gitops + namespace: flux-system +spec: + interval: 1h + type: oci + url: oci://ghcr.io/weaveworks/charts +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: weave-gitops + namespace: flux-system +spec: + interval: 1h + chart: + spec: + chart: weave-gitops + version: "4.0.36" + sourceRef: + kind: HelmRepository + name: weave-gitops + interval: 1h + values: + adminUser: + create: true + username: davide + resources: + requests: + cpu: 20m + memory: 64Mi + limits: + cpu: 100m + memory: 128Mi +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: weave-gitops + namespace: flux-system + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod +spec: + ingressClassName: traefik + rules: + - host: flux.davidepiu.xyz + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: weave-gitops + port: + number: 9001 + tls: + - hosts: + - flux.davidepiu.xyz + secretName: weave-gitops-tls