Skip to content

Commit

Permalink
feat: add nfs subdir provisioner, modify rook-bak nfs path
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-mcd committed Dec 10, 2021
1 parent 974607d commit 0a06050
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 1 deletion.
1 change: 1 addition & 0 deletions cluster/apps/kube-system/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ resources:
- node-feature-discovery
- intel-gpu-plugin
- reloader
- nfs-subdir-external-provisioner
# - kured
43 changes: 43 additions & 0 deletions cluster/apps/kube-system/nfs-subdir-provisioner/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: nfs-subdir-external-provisioner
namespace: kube-system
labels:
kustomize.toolkit.fluxcd.io/substitute: "disabled"
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
chart: nfs-subdir-external-provisioner
version: 4.0.14
sourceRef:
kind: HelmRepository
name: nfs-subdir-external-provisioner-charts
namespace: flux-system
interval: 5m
values:
replicaCount: 2
nfs:
server: "10.11.1.111"
path: "/mnt/user/PersistentVolumeClaims"
mountOptions:
- noatime
storageClass:
defaultClass: false
pathPattern: "${.PVC.namespace}-${.PVC.name}"
onDelete: retain
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- nfs-subdir-external-provisioner
topologyKey: kubernetes.io/hostname
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
2 changes: 1 addition & 1 deletion cluster/apps/rook-ceph/rook-direct-mount/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ spec:
- name: nas-data
nfs:
server: "${NAS_ADDR}"
path: /mnt/user/k8s-bak/rook-bak
path: /mnt/user/rook-bak/
- name: direct-mount-scripts
projected:
defaultMode: 0775
Expand Down
1 change: 1 addition & 0 deletions cluster/base/flux-system/charts/helm/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ resources:
- infracloudio-charts.yaml
- rancher-server-charts.yaml
- gitea-charts.yaml
- nfs-subdir-external-provisioner-charts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: nfs-subdir-external-provisioner-charts
namespace: flux-system
spec:
interval: 15m
url: https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
timeout: 3m

0 comments on commit 0a06050

Please sign in to comment.