Skip to content

Commit

Permalink
docs: update configmap example usage
Browse files Browse the repository at this point in the history
Signed-off-by: Xuhui zhang <[email protected]>
  • Loading branch information
zxh326 committed Aug 8, 2024
1 parent 1cea65b commit f7559cb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/en/guide/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,28 @@ globalConfig:
juicefs-delete-delay: 5m
# clean cache when mount pod exits
juicefs-clean-cache: "true"

# define an environment variable for mount pod
- pvcSelector:
matchLabels:
...
env:
- name: DEMO_GREETING
value: "Hello from the environment"
- name: DEMO_FAREWELL
value: "Such a sweet sorrow"

# mount some volumes to mount pod
- pvcSelector:
matchLabels:
...
volumeDevices:
- name: block-devices
devicePath: /dev/sda1
volumes:
- name: block-devices
persistentVolumeClaim:
claimName: block-pv

```

Expand Down
23 changes: 23 additions & 0 deletions docs/zh_cn/guide/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,29 @@ globalConfig:
juicefs-delete-delay: 5m
# 退出时清理 cache
juicefs-clean-cache: "true"

# 为 mount pod 注入 env
- pvcSelector:
matchLabels:
...
env:
- name: DEMO_GREETING
value: "Hello from the environment"
- name: DEMO_FAREWELL
value: "Such a sweet sorrow"

# 挂载 volumes 到 mount pod
- pvcSelector:
matchLabels:
...
volumeDevices:
- name: block-devices
devicePath: /dev/sda1
volumes:
- name: block-devices
persistentVolumeClaim:
claimName: block-pv

```

### 通过继承 CSI Node 配置进行定制(不推荐) {#inherit-from-csi-node}
Expand Down

0 comments on commit f7559cb

Please sign in to comment.