Skip to content

Commit

Permalink
feat: add volumesnaphotclass
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed May 12, 2024
1 parent 19ef50c commit 48a432b
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 1 deletion.
2 changes: 2 additions & 0 deletions k8s/apps/backup/volsync/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
targetNamespace: backup
path: ./k8s/apps/backup/volsync/app
dependsOn:
- name: snapshot-controller
prune: true
sourceRef:
kind: GitRepository
Expand Down
17 changes: 17 additions & 0 deletions k8s/apps/longhorn-system/longhorn/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,21 @@ spec:
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: longhorn-snapshot
namespace: flux-system
spec:
path: ./k8s/apps/longhorn-system/longhorn/snapshot
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m
4 changes: 4 additions & 0 deletions k8s/apps/longhorn-system/longhorn/snapshot/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storageclass.yaml
8 changes: 8 additions & 0 deletions k8s/apps/longhorn-system/longhorn/snapshot/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: snapshot.storage.k8s.io/v1
kind: VolumeSnapshotClass
metadata:
name: longhorn-snapshot
driver: driver.longhorn.io
deletionPolicy: Delete
parameters:
type: bak
2 changes: 1 addition & 1 deletion k8s/apps/storage/snapshot-controller/app/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ spec:
driver: driver.longhorn.io
deletionPolicy: Delete
parameters:
type: snap
type: bak
2 changes: 2 additions & 0 deletions k8s/apps/storage/snapshot-controller/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
targetNamespace: storage
path: ./k8s/apps/storage/snapshot-controller/app
dependsOn:
- name: longhorn
prune: true
sourceRef:
kind: GitRepository
Expand Down

0 comments on commit 48a432b

Please sign in to comment.