Adding snapshot controller
This commit is contained in:
parent
47ce193075
commit
1126521fdb
5 changed files with 78 additions and 0 deletions
|
@ -7,5 +7,6 @@ resources:
|
||||||
- ./namespace.yaml
|
- ./namespace.yaml
|
||||||
# Flux-Kustomizations
|
# Flux-Kustomizations
|
||||||
- ./democratic-csi/ks.yaml
|
- ./democratic-csi/ks.yaml
|
||||||
|
- ./snapshot-controller/ks.yaml
|
||||||
- ./reloader/ks.yaml
|
- ./reloader/ks.yaml
|
||||||
- ./kubelet-csr-approver/ks.yaml
|
- ./kubelet-csr-approver/ks.yaml
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta1.json
|
||||||
|
apiVersion: helm.toolkit.fluxcd.io/v2beta1
|
||||||
|
kind: HelmRelease
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller
|
||||||
|
spec:
|
||||||
|
interval: 30m
|
||||||
|
chart:
|
||||||
|
spec:
|
||||||
|
chart: snapshot-controller
|
||||||
|
version: 2.0.3
|
||||||
|
sourceRef:
|
||||||
|
kind: HelmRepository
|
||||||
|
name: piraeus
|
||||||
|
namespace: flux-system
|
||||||
|
interval: 30m
|
||||||
|
install:
|
||||||
|
crds: CreateReplace
|
||||||
|
upgrade:
|
||||||
|
crds: CreateReplace
|
||||||
|
values:
|
||||||
|
controller:
|
||||||
|
serviceMonitor:
|
||||||
|
create: true
|
||||||
|
webhook:
|
||||||
|
enabled: true
|
||||||
|
tls:
|
||||||
|
certManagerIssuerRef:
|
||||||
|
name: snapshot-controller-webhook-ca
|
||||||
|
kind: Issuer
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://json.schemastore.org/kustomization.json
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- ./pki.yaml
|
||||||
|
- ./helmrelease.yaml
|
17
kubernetes/apps/system/snapshot-controller/app/pki.yaml
Normal file
17
kubernetes/apps/system/snapshot-controller/app/pki.yaml
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://ks.hsn.dev/cert-manager.io/issuer_v1.json
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Issuer
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller-webhook-selfsign
|
||||||
|
spec:
|
||||||
|
selfSigned: {}
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://ks.hsn.dev/cert-manager.io/issuer_v1.json
|
||||||
|
apiVersion: cert-manager.io/v1
|
||||||
|
kind: Issuer
|
||||||
|
metadata:
|
||||||
|
name: snapshot-controller-webhook-ca
|
||||||
|
spec:
|
||||||
|
ca:
|
||||||
|
secretName: snapshot-controller-webhook-ca
|
22
kubernetes/apps/system/snapshot-controller/ks.yaml
Normal file
22
kubernetes/apps/system/snapshot-controller/ks.yaml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &appname snapshot-controller
|
||||||
|
namespace: flux-system
|
||||||
|
spec:
|
||||||
|
targetNamespace: system-controllers
|
||||||
|
commonMetadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: *appname
|
||||||
|
interval: 10m
|
||||||
|
path: "./kubernetes/main/apps/system-controllers/snapshot-controller/app"
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: valinor
|
||||||
|
wait: true
|
||||||
|
timeout: 2m
|
||||||
|
dependsOn:
|
||||||
|
- name: cert-manager
|
Reference in a new issue