Skip to content

Commit 2410ec2

Browse files
Ahmad, Sufianmboglesby
authored andcommitted
Updated readme with clone resource allocation.
1 parent b64bd7b commit 2410ec2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

netapp_dataops_k8s/docs/workspace_management.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ The following options/arguments are optional:
5252
-p, --cpu= Number of CPUs to reserve for new JupyterLab workspace. Format: '0.5', '1', etc. If not specified, no CPUs will be reserved.
5353
-s, --source-snapshot-name= Name of Kubernetes VolumeSnapshot to use as source for clone. Either -s/--source-snapshot-name or -j/--source-workspace-name must be specified.
5454
-b, --load-balancer Option to choose a LoadBalancer service instead of using NodePort service. If not specified, NodePort service will be utilized.
55+
-r, --allocate-resource= Option to specify custom resource allocations, ex. 'nvidia.com/mig-1g.5gb=1'. If not specified, no custom resource will be allocated.
5556
```
5657

5758
##### Example Usage
@@ -567,6 +568,7 @@ def clone_jupyter_lab(
567568
request_cpu: str = None, # Number of CPUs to reserve for new JupyterLab workspace. Format: '0.5', '1', etc. If not specified, no CPUs will be reserved.
568569
request_memory: str = None, # Amount of memory to reserve for newe JupyterLab workspace. Format: '1024Mi', '100Gi', '10Ti', etc. If not specified, no memory will be reserved.
569570
request_nvidia_gpu: str = None, # Number of NVIDIA GPUs to allocate to new JupyterLab workspace. Format: '1', '4', etc. If not specified, no GPUs will be allocated.
571+
allocate_resource: str = None, # Option to specify custom resource allocations, ex. 'nvidia.com/mig-1g.5gb=1'. If not specified, no custom resource will be allocated.
570572
print_output: bool = False # Denotes whether or not to print messages to the console during execution.
571573
) :
572574
```

0 commit comments

Comments
 (0)