initial migration

This commit is contained in:
2023-10-05 14:34:37 +02:00
parent 5cb41fd5e4
commit 41f0153fd0
145 changed files with 17441 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
annotations:
metadata.weave.works/description: This is the source location for the Weave GitOps
Dashboard's helm chart.
labels:
app.kubernetes.io/component: ui
app.kubernetes.io/created-by: weave-gitops-cli
app.kubernetes.io/name: weave-gitops-dashboard
app.kubernetes.io/part-of: weave-gitops
name: flux-dashboard
namespace: flux-system
spec:
interval: 1h0m0s
type: oci
url: oci://ghcr.io/weaveworks/charts
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
annotations:
metadata.weave.works/description: This is the Weave GitOps Dashboard. It provides
a simple way to get insights into your GitOps workloads.
name: flux-dashboard
namespace: flux-system
spec:
chart:
spec:
chart: weave-gitops
sourceRef:
kind: HelmRepository
name: flux-dashboard
interval: 1h0m0s
values:
adminUser:
create: true
passwordHash: $2a$10$k0UXfoFU9qbQQYOD/fJWY.Wlr5z9YVTyC0WrnOk50QhKuo1Y0SZoK
username: admin
# ---
# apiVersion: traefik.containo.us/v1alpha1
# kind: IngressRoute
# metadata:
# namespace: flux-system
# name: flux-ingressroute
# spec:
# entryPoints:
# - websecure
# routes:
# - match: Host(`flux.kluster.moll.re`)
# kind: Rule
# services:
# - name: flux-dashboard-weave-gitops
# port: 9001
# tls:
# certResolver: default-tls

View File

@@ -0,0 +1,75 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: journal-bot
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: main
secretRef:
name: journal-bot
timeout: 60s
url: ssh://git@git.kluster.moll.re:2222/remoll/journal-bot.git
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: journal-bot-kustomize
namespace: flux-system
spec:
force: true
interval: 1m0s
path: ./deployment/overlays/main
prune: false
sourceRef:
kind: GitRepository
name: journal-bot
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: journal-bot-registry
namespace: flux-system
spec:
image: registry.hub.docker.com/mollre/journal-bot
interval: 15m
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: journal-bot-imagerange
namespace: flux-system
spec:
imageRepositoryRef:
name: journal-bot-registry
policy:
semver:
range: 1.x.x
---
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: journal-bot-automation
namespace: flux-system
spec:
interval: 30m
sourceRef:
kind: GitRepository
name: journal-bot
git:
checkout:
ref:
branch: main
commit:
author:
email: flux@moll.re
name: fluxcdbot
messageTemplate: '[CI SKIP] Bump {{range .Updated.Images}}{{println .}}{{end}}'
push:
branch: main
update:
path: ./deployment/base/deployment.yaml
strategy: Setters

View File

@@ -0,0 +1,20 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: whoami-kustomize
namespace: flux-system
spec:
force: true
interval: 1m0s
path: ./whoami/overlays/main
prune: false
sourceRef:
kind: GitRepository
name: k3s-app-collection
# apiVersion: kustomize.toolkit.fluxcd.io/v1
# kind: HelmRelease
# ...