Skip to content

Commit

Permalink
docs: update configmap example usage (#1081)
Browse files Browse the repository at this point in the history
Signed-off-by: Xuhui zhang <[email protected]>
  • Loading branch information
zxh326 authored Aug 8, 2024
1 parent 1f02d36 commit 62b316f
Show file tree
Hide file tree
Showing 2 changed files with 44 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 @@ -109,6 +109,28 @@ globalConfig:
# 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

# Select by StorageClass
- pvcSelector:
matchStorageClassName: juicefs-sc
Expand Down
22 changes: 22 additions & 0 deletions docs/zh_cn/guide/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,28 @@ globalConfig:
# 退出时清理 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

# 选择特定的 StorageClass
- pvcSelector:
matchStorageClassName: juicefs-sc
Expand Down

0 comments on commit 62b316f

Please sign in to comment.