Adding snapshot controller

This commit is contained in:
Joseph Hanson 2023-11-28 00:20:47 -06:00
parent 47ce193075
commit 1126521fdb
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
5 changed files with 78 additions and 0 deletions

View file

@ -7,5 +7,6 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./democratic-csi/ks.yaml
- ./snapshot-controller/ks.yaml
- ./reloader/ks.yaml
- ./kubelet-csr-approver/ks.yaml

View file

@ -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

View file

@ -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

View 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

View 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