Added snapshot class, moved volsync, and removed cluster-apps- prefix to ks.yaml's.

This commit is contained in:
Joseph Hanson 2024-01-16 21:17:06 -06:00
parent f91eb18934
commit 8907406bb6
24 changed files with 92 additions and 37 deletions

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cert-manager
name: cert-manager
namespace: flux-system
spec:
interval: 10m
@ -18,7 +18,7 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cert-manager-issuers
name: cert-manager-issuers
namespace: flux-system
spec:
interval: 10m
@ -29,4 +29,4 @@ spec:
name: homelab
wait: false
dependsOn:
- name: cluster-apps-cert-manager
- name: cert-manager

View file

@ -3,11 +3,11 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-jellyfin
name: jellyfin
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-external-secrets-stores
- name: external-secrets-stores
path: ./kubernetes/apps/default/jellyfin/app
prune: true
sourceRef:

View file

@ -20,7 +20,7 @@ spec:
dependsOn:
- name: local-path-provisioner
- name: volsync
- name: cluster-apps-external-secrets-stores
- name: external-secrets-stores
# ---
# # yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
# apiVersion: kustomize.toolkit.fluxcd.io/v1

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-flux-webhooks
name: flux-webhooks
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
@ -20,7 +20,7 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-flux-monitoring
name: flux-monitoring
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cilium
name: cilium
namespace: flux-system
spec:
interval: 30m

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-metrics-server
name: metrics-server
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-kyverno
name: kyverno
namespace: flux-system
spec:
path: ./kubernetes/apps/kyverno/kyverno/app
@ -20,11 +20,11 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-cluster-policies
name: cluster-policies
namespace: flux-system
spec:
dependsOn:
- name: cluster-apps-kyverno
- name: kyverno
path: ./kubernetes/apps/kyverno/kyverno/policies
prune: true
sourceRef:

View file

@ -13,7 +13,7 @@ spec:
labels:
app.kubernetes.io/name: *app
dependsOn:
- name: cluster-apps-external-secrets-stores
- name: external-secrets-stores
path: ./kubernetes/apps/network/cloudflared/app
prune: false
sourceRef:

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-echo-server
name: echo-server
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-externaldns-hsn-dev
name: externaldns-hsn-dev
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
@ -16,13 +16,13 @@ spec:
name: homelab
wait: true
dependsOn:
- name: cluster-apps-external-secrets-stores
- name: external-secrets-stores
---
# 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: cluster-apps-externaldns-jahanson-tech
name: externaldns-jahanson-tech
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
@ -35,7 +35,7 @@ spec:
name: homelab
wait: true
dependsOn:
- name: cluster-apps-external-secrets-stores
- name: external-secrets-stores
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/kustomization-kustomize-v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-ingress-nginx-external
name: ingress-nginx-external
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
@ -16,13 +16,13 @@ spec:
name: homelab
wait: true
dependsOn:
- name: cluster-apps-cert-manager-issuers
- name: cert-manager-issuers
---
# 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: cluster-apps-ingress-nginx-internal
name: ingress-nginx-internal
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"
@ -35,4 +35,4 @@ spec:
name: homelab
wait: true
dependsOn:
- name: cluster-apps-cert-manager-issuers
- name: cert-manager-issuers

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-nvidia-device-plugin
name: nvidia-device-plugin
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"

View file

@ -1,5 +1,5 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/helm.toolkit.fluxcd.io/helmrelease_v2beta2.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-external-secrets
name: external-secrets
namespace: flux-system
spec:
interval: 10m
@ -18,7 +18,7 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-external-secrets-stores
name: external-secrets-stores
namespace: flux-system
spec:
interval: 10m
@ -29,13 +29,13 @@ spec:
name: homelab
wait: true
dependsOn:
- name: cluster-apps-external-secrets
- name: external-secrets
---
# 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: cluster-apps-external-secrets-cluster-secrets
name: external-secrets-cluster-secrets
namespace: flux-system
spec:
interval: 10m
@ -46,5 +46,5 @@ spec:
name: homelab
wait: true
dependsOn:
- name: cluster-apps-external-secrets
- name: cluster-apps-external-secrets-stores
- name: external-secrets
- name: external-secrets-stores

View file

@ -7,3 +7,5 @@ resources:
- ./namespace.yaml
# Flux-Kustomizations
- ./local-path-provisioner/ks.yaml
- ./snapshot-controller/ks.yaml
- ./volsync/ks.yaml

View file

@ -0,0 +1,33 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
name: snapshot-controller
spec:
interval: 30m
chart:
spec:
chart: snapshot-controller
version: 2.0.4
sourceRef:
kind: HelmRepository
name: piraeus
namespace: flux-system
install:
crds: CreateReplace
remediation:
retries: 3
upgrade:
cleanupOnFail: true
crds: CreateReplace
remediation:
retries: 3
uninstall:
keepHistory: false
values:
controller:
serviceMonitor:
create: true
webhook:
enabled: false

View file

@ -0,0 +1,21 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: &app snapshot-controller
namespace: flux-system
spec:
targetNamespace: storage
commonMetadata:
labels:
app.kubernetes.io/name: *app
path: ./kubernetes/main/apps/storage/snapshot-controller/app
prune: true
sourceRef:
kind: GitRepository
name: homelab
wait: false
interval: 30m
retryInterval: 1m
timeout: 5m

View file

@ -6,12 +6,12 @@ metadata:
name: &appname volsync
namespace: flux-system
spec:
targetNamespace: system
targetNamespace: storage
commonMetadata:
labels:
app.kubernetes.io/name: *appname
interval: 10m
path: "./kubernetes/apps/system/volsync/app"
path: "./kubernetes/apps/storage/volsync/app"
prune: true
sourceRef:
kind: GitRepository

View file

@ -9,4 +9,3 @@ resources:
- ./node-feature-discovery/ks.yaml
- ./reloader/ks.yaml
- ./snapshot-controller/ks.yaml
- ./volsync/ks.yaml

View file

@ -22,7 +22,7 @@ spec:
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-node-feature-discovery-rules
name: node-feature-discovery-rules
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"

View file

@ -3,7 +3,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-reloader
name: reloader
namespace: flux-system
labels:
substitution.flux.home.arpa/enabled: "true"

View file

@ -19,4 +19,4 @@ spec:
wait: true
timeout: 2m
dependsOn:
- name: cluster-apps-cert-manager
- name: cert-manager