Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 19 additions & 20 deletions docs/en/dev/generic_cache_runtime_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,22 @@ metadata:
fileSystemType: $fsType
topology:
master:
workloadType: # Create master with StatefulSet workload
apiVersion: apps/v1
kind: StatefulSet
service: # Need to create Headless Service for master, only supported when workloadType is StatefulSet
service: # Need to create Headless Service for master
headless: {}
dependencies:
encryptOption: {} # Current not support
podTemplateSpec:
executionEntries:
mountUFS: # mount ufs in master pod, see section 2.7
command:
- bash
- -c
- /mountUfs.sh
timeout: 120
reportSummary: # get cache states in master pod, see section 2.8
command:
- bash
- -c
- /reportSummary.sh
timeout: 30
template:
spec:
restartPolicy: Always
containers:
Expand All @@ -138,13 +146,9 @@ topology:
- custom-endpoint.sh
imagePullPolicy: IfNotPresent
worker:
workloadType: # Create worker with StatefulSet workload
apiVersion: apps/v1
kind: StatefulSet
service:
headless: {} # Need to create Headless Service for worker, only supported when workloadType is StatefulSet
dependencies: {}
podTemplateSpec:
service: # create Headless Service for worker
headless: {}
template:
spec:
restartPolicy: Always
containers:
Expand All @@ -156,12 +160,7 @@ topology:
- custom-endpoint.sh
imagePullPolicy: IfNotPresent
client:
workloadType: # Create client with DaemonSet workload
apiVersion: apps/v1
kind: DaemonSet
dependencies:
encryptOption: {} # Need to provide encryptOption declared by user in dataset for client
podTemplateSpec:
template:
spec:
restartPolicy: Always
containers:
Expand Down
39 changes: 19 additions & 20 deletions docs/zh/dev/generic_cache_runtime_integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,22 @@ metadata:
fileSystemType: $fsType
topology:
master:
workloadType: #以StatefulSet workload创建master
apiVersion: apps/v1
kind: StatefulSet
service: #需要为master创建Headless Service,仅当workloadType为Statefulset时支持
service: # 对于 Master-Slave 架构,需要为 Master 创建 Headless Service
headless: {}
dependencies:
encryptOption: {} # 当前暂未支持
podTemplateSpec:
executionEntries:
mountUFS: # mount ufs in master pod, 见 2.7 节
command:
- bash
- -c
- /mountUfs.sh
timeout: 120
reportSummary: # get cache states in master pod, 见 2.8 节
command:
- bash
- -c
- /reportSummary.sh
timeout: 30
template:
spec:
restartPolicy: Always
containers:
Expand All @@ -138,13 +146,9 @@ topology:
- custom-endpoint.sh
imagePullPolicy: IfNotPresent
worker:
workloadType: #以StatefulSet workload创建worker
apiVersion: apps/v1
kind: StatefulSet
service:
headless: {} #需要为worker创建Headless Service,仅当workloadType为Statefulset时支持
dependencies: {}
podTemplateSpec:
service: # 对于 Worker 创建 Headless Service
headless: {}
template:
spec:
restartPolicy: Always
containers:
Expand All @@ -156,12 +160,7 @@ topology:
- custom-endpoint.sh
imagePullPolicy: IfNotPresent
client:
workloadType: #DaemonSet workload创建client
apiVersion: apps/v1
kind: DaemonSet
dependencies:
encryptOption: {} #需要为client提供用户在dataset中声明的encryptOption
podTemplateSpec:
template:
spec:
restartPolicy: Always
containers:
Expand Down
Loading