fluxcd : adding repo example with some apps
This commit is contained in:
6
fluxcd/repo/apps/production/kustomization.yaml
Normal file
6
fluxcd/repo/apps/production/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- remote
|
||||
- system
|
||||
@@ -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
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- ../../../../base/http-broadcaster/app
|
||||
patches:
|
||||
- path: hr-http-broadcaster.yaml
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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'
|
||||
@@ -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$"
|
||||
@@ -0,0 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
namespace: system
|
||||
resources:
|
||||
- app
|
||||
- automations
|
||||
5
fluxcd/repo/apps/production/system/kustomization.yaml
Normal file
5
fluxcd/repo/apps/production/system/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- http-broadcaster
|
||||
Reference in New Issue
Block a user