fluxcd : adding repo example with some apps

This commit is contained in:
2025-05-28 16:00:46 +02:00
parent 00a5e56c27
commit e5738c5c3f
111 changed files with 18051 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: http-broadcaster
spec:
chart:
spec:
chart: myChart
reconcileStrategy: ChartVersion
version: "2.x.x"
sourceRef:
kind: HelmRepository
name: myChart
namespace: infrastructure
interval: 10m0s
values:
environment: "prd"
app:
image:
tag: 2.1.5 # {"$imagepolicy": "system:http-broadcaster:tag"}
autoscaling:
enabled: false
vault:
path: "app/data/http-broadcaster/prd/envVars"
ingress:
autoIngress:
host: "purgatory.example.com"
metrics:
enabled: true
serviceMonitor:
enabled: true

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../../../base/http-broadcaster/app
patches:
- path: hr-http-broadcaster.yaml

View File

@@ -0,0 +1,28 @@
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageUpdateAutomation
metadata:
name: http-broadcaster
labels:
team: system
spec:
git:
checkout:
ref:
branch: main
commit:
author:
email: fluxcdbot@example.com
name: fluxcdbot
messageTemplate: 'deps(apps/production): {{ .AutomationObject }} ImageUpdateAutomation'
push:
branch: main
interval: 3m0s
sourceRef:
kind: GitRepository
name: flux-system
namespace: flux-system
update:
path: ./apps/production/system/http-broadcaster
strategy: Setters

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- iua-http-broadcaster.yaml
- policy-http-broadcaster.yaml
- registry-http-broadcaster.yaml

View File

@@ -0,0 +1,15 @@
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImagePolicy
metadata:
name: http-broadcaster
labels:
team: system
spec:
imageRepositoryRef:
name: http-broadcaster
filterTags:
pattern: '^v?(?P<rv>[0-9]+\.[0-9]+\.[0-9]+)$'
extract: '$rv'
policy:
semver:
range: '^2.x.x-0'

View File

@@ -0,0 +1,13 @@
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageRepository
metadata:
name: http-broadcaster
labels:
team: system
spec:
secretRef:
name: registry-credentials
image: gitlabregistry.example.com/infrastructure/http-broadcaster
interval: 5m0s
exclusionList:
- "_dev$"

View File

@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: system
resources:
- app
- automations