You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Capitalize 'Mount Pod' and 'Mount Pods' consistently per enhanced-proper-names rule
- Fix all occurrences in daemonset-mount.md and mount-pod-configuration.md
- Comply with .markdownlint-cli2.jsonc configuration
Copy file name to clipboardExpand all lines: docs/en/guide/daemonset-mount.md
+22-21Lines changed: 22 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
# DaemonSet Mount for StorageClass
2
2
3
-
This feature allows JuiceFS CSI Driver to deploy mount pods as DaemonSets instead of individual pods when using StorageClass with mount sharing enabled. This provides better resource management and control over which nodes run mount pods.
3
+
This feature allows JuiceFS CSI Driver to deploy Mount Pods as DaemonSets instead of individual Pods when using StorageClass with mount sharing enabled. This provides better resource management and control over which nodes run Mount Pods.
4
4
5
5
## Overview
6
6
7
-
When `STORAGE_CLASS_SHARE_MOUNT` is enabled, JuiceFS CSI Driver shares mount pods across multiple PVCs that use the same StorageClass. By default, these are created as individual pods. With the DaemonSet option, mount pods are deployed as DaemonSets, providing:
7
+
When `STORAGE_CLASS_SHARE_MOUNT` is enabled, JuiceFS CSI Driver shares Mount Pods across multiple PVCs that use the same StorageClass. By default, these are created as individual Pods. With the DaemonSet option, Mount Pods are deployed as DaemonSets, providing:
8
8
9
-
-**Better resource control**: DaemonSets ensure one mount pod per selected node
10
-
-**Node affinity support**: Control which nodes run mount pods using nodeAffinity
11
-
-**Automatic lifecycle management**: DaemonSets handle pod creation/deletion automatically
12
-
-**Simplified operations**: Easier to manage and monitor mount pods
9
+
-**Better resource control**: DaemonSets ensure one Mount Pod per selected node
10
+
-**Node affinity support**: Control which nodes run Mount Pods using nodeAffinity
11
+
-**Automatic lifecycle management**: DaemonSets handle Pod creation/deletion automatically
12
+
-**Simplified operations**: Easier to manage and monitor Mount Pods
13
13
-**Works with existing StorageClasses**: No need to modify or recreate StorageClasses
14
14
15
15
## Configuration
16
16
17
17
### Enable DaemonSet Mount
18
18
19
-
To enable DaemonSet mount for StorageClass, set these environment variables in the CSI driver deployment:
19
+
To enable DaemonSet mount for StorageClass, set these environment variables in the CSI Driver deployment:
20
20
21
21
```yaml
22
22
env:
@@ -28,7 +28,7 @@ env:
28
28
29
29
### Configure Node Affinity
30
30
31
-
There are two ways to configure node affinity for DaemonSet mount pods:
31
+
There are two ways to configure node affinity for DaemonSet Mount Pods:
32
32
33
33
#### Method 1: ConfigMap (Recommended for existing StorageClasses)
34
34
@@ -77,7 +77,7 @@ provisioner: csi.juicefs.com
77
77
parameters:
78
78
# ... other parameters ...
79
79
80
-
# Node affinity configuration for DaemonSet mount pods
80
+
# Node affinity configuration for DaemonSet Mount Pods
81
81
nodeAffinity: |
82
82
requiredDuringSchedulingIgnoredDuringExecution:
83
83
nodeSelectorTerms:
@@ -91,14 +91,14 @@ parameters:
91
91
## How It Works
92
92
93
93
1. When a PVC is created using a StorageClass with DaemonSet mount enabled:
94
-
- The CSI driver checks if a DaemonSet for this StorageClass already exists
94
+
- The CSI Driver checks if a DaemonSet for this StorageClass already exists
95
95
- If not, it looks for node affinity configuration:
96
96
- First checks the ConfigMap for StorageClass-specific or default configuration
97
97
- Falls back to StorageClass parameters if specified
98
98
- Creates a new DaemonSet with the configured node affinity
99
99
- If DaemonSet exists, it adds a reference to the existing DaemonSet
100
100
101
-
2. The DaemonSet ensures mount pods are running on selected nodes:
101
+
2. The DaemonSet ensures Mount Pods are running on selected nodes:
102
102
- Pods are automatically created on nodes matching the affinity rules
103
103
- Mount paths are shared across PVCs using the same StorageClass
104
104
@@ -109,6 +109,7 @@ parameters:
109
109
## Priority Order
110
110
111
111
The system checks for node affinity configuration in this order:
112
+
112
113
1. **StorageClass parameters** (if `nodeAffinity` is specified)
113
114
2. **ConfigMap with StorageClass name** as key
114
115
3. **ConfigMap default** configuration
@@ -118,7 +119,7 @@ The system checks for node affinity configuration in this order:
Copy file name to clipboardExpand all lines: docs/en/guide/mount-pod-configuration.md
+39-23Lines changed: 39 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,20 @@
1
1
# Mount Pod Configuration Guide
2
2
3
-
JuiceFS CSI Driver provides flexible mount pod deployment options that can be configured per StorageClass. This allows you to optimize resource usage and performance based on your specific needs.
3
+
JuiceFS CSI Driver provides flexible Mount Pod deployment options that can be configured per StorageClass. This allows you to optimize resource usage and performance based on your specific needs.
4
4
5
5
## Overview
6
6
7
-
JuiceFS CSI Driver supports three mount pod deployment modes:
7
+
JuiceFS CSI Driver supports three Mount Pod deployment modes:
8
8
9
-
1.**Per-PVC Mode** (`per-pvc`): Creates a separate mount pod for each PVC
10
-
2.**Shared Pod Mode** (`shared-pod`): Shares mount pods across PVCs using the same StorageClass
11
-
3.**DaemonSet Mode** (`daemonset`): Deploys mount pods as DaemonSets with node affinity support
9
+
1.**Per-PVC Mode** (`per-pvc`): Creates a separate Mount Pod for each PVC
10
+
2.**Shared Pod Mode** (`shared-pod`): Shares Mount Pods across PVCs using the same StorageClass
11
+
3.**DaemonSet Mode** (`daemonset`): Deploys Mount Pods as DaemonSets with node affinity support
12
12
13
13
## Configuration Methods
14
14
15
15
### Global Defaults (Environment Variables)
16
16
17
-
Set default behavior for all StorageClasses via environment variables in the CSI driver:
17
+
Set default behavior for all StorageClasses via environment variables in the CSI Driver:
0 commit comments