Add Flagger
This commit is contained in:
parent
740076c19f
commit
9141228d53
8
clusters/my-cluster/flagger/kustomization.yaml
Normal file
8
clusters/my-cluster/flagger/kustomization.yaml
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
namespace: flagger-system
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- repository.yaml
|
||||||
|
- release.yaml
|
7
clusters/my-cluster/flagger/namespace.yaml
Normal file
7
clusters/my-cluster/flagger/namespace.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: flagger-system
|
||||||
|
labels:
|
||||||
|
toolkit.fluxcd.io/tenant: sre-team
|
26
clusters/my-cluster/flagger/release.yaml
Normal file
26
clusters/my-cluster/flagger/release.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: flagger
|
||||||
|
namespace: flagger-system
|
||||||
|
spec:
|
||||||
|
interval: 1h
|
||||||
|
releaseName: flagger
|
||||||
|
install: # override existing Flagger CRDs
|
||||||
|
crds: CreateReplace
|
||||||
|
upgrade: # update Flagger CRDs
|
||||||
|
crds: CreateReplace
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: flagger
|
||||||
|
version: 1.x # update Flagger to the latest minor version
|
||||||
|
interval: 6h # scan for new versions every six hours
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: flagger
|
||||||
|
verify: # verify the chart signature with Cosign keyless
|
||||||
|
provider: cosign
|
||||||
|
values:
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/os: linux
|
10
clusters/my-cluster/flagger/repository.yaml
Normal file
10
clusters/my-cluster/flagger/repository.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
---
|
||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: HelmRepository
|
||||||
|
metadata:
|
||||||
|
name: flagger
|
||||||
|
namespace: flagger-system
|
||||||
|
spec:
|
||||||
|
interval: 1h
|
||||||
|
url: oci://ghcr.io/fluxcd/charts
|
||||||
|
type: oci
|
Loading…
Reference in New Issue
Block a user