Skip to content

Commit

Permalink
chore: create nfs storageclass
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed May 11, 2024
1 parent 2af3889 commit 8a77dbe
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions k8s/apps/storage/csi-driver-nfs/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,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: csi-driver-nfs-storageclass
namespace: flux-system
spec:
path: ./k8s/apps/storage/csi-driver-nfs/storage
prune: true
sourceRef:
kind: GitRepository
name: home-cluster
wait: true
interval: 30m
retryInterval: 1m
timeout: 5m
4 changes: 4 additions & 0 deletions k8s/apps/storage/csi-driver-nfs/storage/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
9 changes: 9 additions & 0 deletions k8s/apps/storage/csi-driver-nfs/storage/storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: nfs
provisioner: nfs.csi.k8s.io
reclaimPolicy: Retain
volumeBindingMode: Immediate
mountOptions:
- nfsvers=4.1

0 comments on commit 8a77dbe

Please sign in to comment.