diff --git a/bootstrap/helmrepositories/helmrepository-weave-gitops.yaml b/bootstrap/helmrepositories/helmrepository-weave-gitops.yaml new file mode 100644 index 0000000..c87c813 --- /dev/null +++ b/bootstrap/helmrepositories/helmrepository-weave-gitops.yaml @@ -0,0 +1,9 @@ +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: weave-gitops + namespace: flux-system +spec: + interval: 1h0m0s + type: oci + url: oci://ghcr.io/weaveworks/charts diff --git a/bootstrap/kustomizations/kustomization-weave-gitops.yaml b/bootstrap/kustomizations/kustomization-weave-gitops.yaml new file mode 100644 index 0000000..a53b7bb --- /dev/null +++ b/bootstrap/kustomizations/kustomization-weave-gitops.yaml @@ -0,0 +1,18 @@ +apiVersion: kustomize.toolkit.fluxcd.io/v1 +kind: Kustomization +metadata: + name: weave-gitops + namespace: flux-system +spec: + interval: 15m + path: ./weave-gitops + prune: true # remove any elements later removed from the above path + timeout: 2m # if not set, this defaults to interval duration, which is 1h + sourceRef: + kind: GitRepository + name: flux-system + healthChecks: + - apiVersion: helm.toolkit.fluxcd.io/v2beta1 + kind: HelmRelease + name: weave-gitops + namespace: weave-gitops diff --git a/bootstrap/namespaces/namespace-weave-gitops.yaml b/bootstrap/namespaces/namespace-weave-gitops.yaml new file mode 100644 index 0000000..4319604 --- /dev/null +++ b/bootstrap/namespaces/namespace-weave-gitops.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: weave-gitops diff --git a/weave-gitops/helmrelease-traefik.yaml b/weave-gitops/helmrelease-traefik.yaml new file mode 100644 index 0000000..43fef2b --- /dev/null +++ b/weave-gitops/helmrelease-traefik.yaml @@ -0,0 +1,22 @@ +apiVersion: helm.toolkit.fluxcd.io/v2beta1 +kind: HelmRelease +metadata: + name: weave-gitops + namespace: weave-gitops +spec: + chart: + spec: + chart: weave-gitops + version: 4.x + sourceRef: + kind: HelmRepository + name: weave-gitops + namespace: flux-system + interval: 15m + timeout: 5m + releaseName: weave-gitops + values: + adminUser: + create: true + passwordHash: $2a$10$UbI.iTSJlbmim9A/FYGcHOSWdWnSd0Wwzdv5YXW4eGsPupA1nVW/y + username: admin