Added snapshot class, moved volsync, and removed cluster-apps- prefix to ks.yaml's.
This commit is contained in:
parent
f91eb18934
commit
8907406bb6
24 changed files with 92 additions and 37 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -7,3 +7,5 @@ resources:
|
|||
- ./namespace.yaml
|
||||
# Flux-Kustomizations
|
||||
- ./local-path-provisioner/ks.yaml
|
||||
- ./snapshot-controller/ks.yaml
|
||||
- ./volsync/ks.yaml
|
||||
|
|
|
@ -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
|
21
kubernetes/apps/storage/snapshot-controller/ks.yaml
Normal file
21
kubernetes/apps/storage/snapshot-controller/ks.yaml
Normal 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
|
|
@ -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
|
|
@ -9,4 +9,3 @@ resources:
|
|||
- ./node-feature-discovery/ks.yaml
|
||||
- ./reloader/ks.yaml
|
||||
- ./snapshot-controller/ks.yaml
|
||||
- ./volsync/ks.yaml
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -19,4 +19,4 @@ spec:
|
|||
wait: true
|
||||
timeout: 2m
|
||||
dependsOn:
|
||||
- name: cluster-apps-cert-manager
|
||||
- name: cert-manager
|
||||
|
|
Loading…
Reference in a new issue