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
Copy file name to clipboardExpand all lines: netapp_dataops_k8s/README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,14 +129,15 @@ The following options/arguments are optional:
129
129
-n, --namespace= Kubernetes namespace that source workspace is located in. If not specified, namespace "default" will be used.
130
130
-p, --cpu= Number of CPUs to reserve for new JupyterLab workspace. Format: '0.5', '1', etc. If not specified, no CPUs will be reserved.
131
131
-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.
132
+
-b, --load-balancer Option to choose a LoadBalancer service instead of using NodePort service. If not specified, NodePort service will be utilized.
132
133
```
133
134
134
135
##### Example Usage
135
136
136
-
Near-instantaneously create a new JupyterLab workspace, named 'project1-experiment3', that is an exact copy of the current contents of existing JupyterLab workspace 'project1' in namespace 'default'. Allocate 2 NVIDIA GPUs to the new workspace.
137
+
Near-instantaneously create a new JupyterLab workspace, named 'project1-experiment3', that is an exact copy of the current contents of existing JupyterLab workspace 'project1' in namespace 'default'. Allocate 2 NVIDIA GPUs to the new workspace and use LoadBalancer service instead of NodePort.
Creating new JupyterLab workspace 'project1-experiment3' from source workspace 'project1' in namespace 'default'...
141
142
142
143
Creating new VolumeSnapshot 'ntap-dsutil.for-clone.20210315185504' for source PVC 'ntap-dsutil-jupyterlab-project1' in namespace 'default' to use as source for clone...
@@ -161,7 +162,7 @@ Waiting for Deployment 'ntap-dsutil-jupyterlab-project1-experiment3' to reach Re
161
162
Deployment successfully created.
162
163
163
164
Workspace successfully created.
164
-
To access workspace, navigate to http://10.61.188.112:30993
165
+
To access workspace, navigate to http://10.61.188.110
165
166
JupyterLab workspace successfully cloned.
166
167
```
167
168
@@ -832,6 +833,7 @@ def clone_jupyter_lab(
832
833
new_workspace_name: str, # Name of new workspace (name to be applied to new JupyterLab workspace) (required).
833
834
source_workspace_name: str, # Name of JupyterLab workspace to use as source for clone. (required).
834
835
source_snapshot_name: str = None, # Name of Kubernetes VolumeSnapshot to use as source for clone.
836
+
load_balancer_service: bool = False, # Option to use a LoadBalancer instead of using NodePort service. If not specified, NodePort service will be utilized.
835
837
new_workspace_password: str = None, # Workspace password (this password will be required in order to access the workspace). If not specified, you will be prompted to enter a password via the console.
836
838
volume_snapshot_class: str = "csi-snapclass", # Kubernetes VolumeSnapshotClass to use when creating clone. If not specified, "csi-snapclass" will be used. Note: VolumeSnapshotClass must be configured to use Trident.
837
839
namespace: str = "default", # Kubernetes namespace that source workspace is located in. If not specified, namespace "default" will be used.
Copy file name to clipboardExpand all lines: netapp_dataops_k8s/netapp_dataops/netapp_dataops_k8s_cli.py
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -73,10 +73,12 @@
73
73
\t-n, --namespace=\t\tKubernetes namespace that source workspace is located in. If not specified, namespace "default" will be used.
74
74
\t-p, --cpu=\t\t\tNumber of CPUs to reserve for new JupyterLab workspace. Format: '0.5', '1', etc. If not specified, no CPUs will be reserved.
75
75
\t-s, --source-snapshot-name=\tName of Kubernetes VolumeSnapshot to use as source for clone. Either -s/--source-snapshot-name or -j/--source-workspace-name must be specified.
76
+
\t-b, --source-snapshot-name=\tName of Kubernetes VolumeSnapshot to use as source for clone. Either -s/--source-snapshot-name or -j/--source-workspace-name must be specified.
77
+
\t-b, --load-balancer\tOption to use a LoadBalancer instead of using NodePort service. If not specified, NodePort service will be utilized.
0 commit comments