Skip to content

Commit

Permalink
feat: add includes dir
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <[email protected]>
  • Loading branch information
onedr0p committed Jan 12, 2025
1 parent 01242ac commit e7ea7d4
Show file tree
Hide file tree
Showing 21 changed files with 68 additions and 19 deletions.
2 changes: 1 addition & 1 deletion kubernetes/apps/actions-runner-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./gha-runner-scale-set-controller/ks.yaml
- ./gha-runner-scale-set/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/cert-manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./cert-manager/ks.yaml
transformers:
Expand Down
3 changes: 2 additions & 1 deletion kubernetes/apps/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
- ../../includes/volsync
# Flux-Kustomizations
- ./atuin/ks.yaml
- ./autobrr/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/external-secrets/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./external-secrets/ks.yaml
- ./onepassword-connect/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/flux-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./flux-operator/ks.yaml
transformers:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./cilium/ks.yaml
- ./coredns/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/kyverno/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./kyverno/ks.yaml
transformers:
Expand Down
10 changes: 4 additions & 6 deletions kubernetes/apps/kyverno/kyverno/policies/volsync-movers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ spec:
mountPath: /repository
volumes:
- name: repository
nfs:
server: expanse.internal
path: /mnt/eros/Volsync
persistentVolumeClaim:
claimName: volsync-nfs
- name: mutate-volsync-dst-movers
match:
any:
Expand All @@ -61,6 +60,5 @@ spec:
mountPath: /repository
volumes:
- name: repository
nfs:
server: expanse.internal
path: /mnt/eros/Volsync
persistentVolumeClaim:
claimName: volsync-nfs
2 changes: 1 addition & 1 deletion kubernetes/apps/network/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./cloudflare-ddns/ks.yaml
- ./cloudflared/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/observability/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./blackbox-exporter/ks.yaml
# - ./cupdate/ks.yaml
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/openebs-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./openebs/ks.yaml
transformers:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/rook-ceph/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./rook-ceph/ks.yaml
transformers:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/apps/volsync-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ kind: Kustomization
resources:
# Pre Flux-Kustomizations
- ./namespace.yaml
- ../../templates/flux
- ../../includes/alerts
# Flux-Kustomizations
- ./snapshot-controller/ks.yaml
- ./volsync/ks.yaml
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions kubernetes/includes/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: flux-system
resources: []
6 changes: 6 additions & 0 deletions kubernetes/includes/volsync/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# yaml-language-server: $schema=https://json.schemastore.org/kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./pvc.yaml
38 changes: 38 additions & 0 deletions kubernetes/includes/volsync/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: volsync-nfs
provisioner: nfs
parameters:
archiveOnDelete: "false"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: volsync-nfs
spec:
storageClassName: volsync-nfs
capacity:
storage: 1Mi # Size does not matter
accessModes: ["ReadWriteMany"]
persistentVolumeReclaimPolicy: Retain
nfs:
server: expanse.internal
path: /mnt/eros/Volsync
mountOptions:
- nfsvers=4.2
- hard=True
- nconnect=16
- noatime=True
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: volsync-nfs
spec:
accessModes: ["ReadWriteMany"]
storageClassName: volsync-nfs
resources:
requests:
storage: 1Mi # Size does not matter
2 changes: 1 addition & 1 deletion kubernetes/templates/volsync/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./claim.yaml
- ./nfs.yaml
- ./pvc.yaml
- ./r2.yaml
File renamed without changes.

0 comments on commit e7ea7d4

Please sign in to comment.