generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add nfs subdir provisioner, modify rook-bak nfs path
- Loading branch information
Showing
6 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ resources: | |
- node-feature-discovery | ||
- intel-gpu-plugin | ||
- reloader | ||
- nfs-subdir-external-provisioner | ||
# - kured |
43 changes: 43 additions & 0 deletions
43
cluster/apps/kube-system/nfs-subdir-provisioner/helm-release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
4 changes: 4 additions & 0 deletions
4
cluster/apps/kube-system/nfs-subdir-provisioner/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
cluster/base/flux-system/charts/helm/nfs-subdir-external-provisioner-charts.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |