feat: Added cert-manager
This commit is contained in:
6
clusters/testing/kustomization.yaml
Normal file
6
clusters/testing/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- flux-system/
|
||||||
|
- ../../controllers/artifacts.yaml
|
||||||
|
- ../../controllers/cert-manager/cert-manager.yaml
|
||||||
16
controllers/artifacts.yaml
Normal file
16
controllers/artifacts.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
apiVersion: source.extensions.fluxcd.io/v1beta1
|
||||||
|
kind: ArtifactGenerator
|
||||||
|
metadata:
|
||||||
|
name: controllers
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
sources:
|
||||||
|
- alias: foundation
|
||||||
|
kind: GitRepository
|
||||||
|
name: flux-system
|
||||||
|
artifacts:
|
||||||
|
- name: cert-manager
|
||||||
|
originRevision: "@foundation"
|
||||||
|
copy:
|
||||||
|
- from: "@foundation/controllers/cert-manager/**"
|
||||||
|
to: "@artifact/"
|
||||||
15
controllers/cert-manager/cert-manager.yaml
Normal file
15
controllers/cert-manager/cert-manager.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
interval: 1h
|
||||||
|
retryInterval: 2m
|
||||||
|
timeout: 5m
|
||||||
|
sourceRef:
|
||||||
|
kind: ExternalArtifact
|
||||||
|
name: cert-manager
|
||||||
|
path: ./
|
||||||
|
prune: true
|
||||||
|
wait: true
|
||||||
22
controllers/cert-manager/helm-release.yaml
Normal file
22
controllers/cert-manager/helm-release.yaml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
|
namespace: cert-manager
|
||||||
|
spec:
|
||||||
|
interval: 12h
|
||||||
|
install:
|
||||||
|
strategy:
|
||||||
|
name: RetryOnFailure
|
||||||
|
retryInterval: 2m
|
||||||
|
upgrade:
|
||||||
|
strategy:
|
||||||
|
name: RetryOnFailure
|
||||||
|
retryInterval: 3m
|
||||||
|
chartRef:
|
||||||
|
kind: OCIRepository
|
||||||
|
name: cert-manager
|
||||||
|
values:
|
||||||
|
crds:
|
||||||
|
enabled: true
|
||||||
|
keep: false
|
||||||
6
controllers/cert-manager/kustomization.yaml
Normal file
6
controllers/cert-manager/kustomization.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./namespace.yaml
|
||||||
|
- ./oci-repository.yaml
|
||||||
|
- ./helm-release.yaml
|
||||||
4
controllers/cert-manager/namespace.yaml
Normal file
4
controllers/cert-manager/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
13
controllers/cert-manager/oci-repository.yaml
Normal file
13
controllers/cert-manager/oci-repository.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: source.toolkit.fluxcd.io/v1
|
||||||
|
kind: OCIRepository
|
||||||
|
metadata:
|
||||||
|
name: cert-manager
|
||||||
|
namespace: cert-manager
|
||||||
|
spec:
|
||||||
|
interval: 24h
|
||||||
|
url: oci://quay.io/jetstack/charts/cert-manager
|
||||||
|
layerSelector:
|
||||||
|
mediaType: "application/vnd.cncf.helm.chart.content.v1.tar+gzip"
|
||||||
|
operation: copy
|
||||||
|
ref:
|
||||||
|
semver: "1.x"
|
||||||
Reference in New Issue
Block a user