An analytics workspace defines all the elements of an analytics workspaces so that Kubernetes and JupyterHub can provision these workspaces as required.
apiVersion:xlscsde.nhs.uk/v1kind:AnalyticsWorkspacemetadata:name:example-workspacenamespace:jupyterhubspec:displayName:Example Workspacedescription:|-An example workspace I've created in order to facilitate testing of the management portal.There may be numerous of these on local environments.jupyterWorkspace:extraLabels:xlscsde.nhs.uk/test:IsTestWorkspaceimage:lscsde/datascience-notebook-default:0.1.0persistentVolumeClaim:{}resources:limits:cpu:2validity:availableFrom:"2022-01-03"expires:"2030-01-07"
Schema
AnalyticsWorkspaceSpec
Property
Description
Type
Required
Default Value
displayName
The short display name used as the title for the workspace.
string
Yes
description
A simple description which can be multiple lines describing the workspace
string
Yes
validity
An object describing variables which are validated to ensure that the workspace is still valid
object
Yes
validity.availableFrom
The date that the workspace is valid from (in open API date format)
string (date)
Yes
validity.expires
The date that the workspace expires
string (date)
Yes
virtualMachineWorkspace
This is not yet implemented, it is to test validation of the CRD is functioning correctly
AnalyticsWorkspaceVirtualMachine
No
None
jupyterWorkspace
Represents a jupyter workspace
AnalyticsWorkspaceJupyterWorkspace
Yes
None
AnalyticsWorkspaceVirtualMachine
Property
Description
Type
Required
Default Value
maxHosts
This is not yet implemented. The maximum number of hosts
string (or int)
No
AnalyticsWorkspaceJupyterWorkspace
Property
Description
Type
Required
Default Value
image
The image used when provisioning the pod created by jupyter hub
string
Yes
extraLabels
A map of labels to append to the pod created
dict(str, str)
No
None
defaultUri
The URI that jupyter will use when the items are provisioned.
string
No
None
nodeSelector
a map of node selector tags per the kubernetes documentation
The name of the storage class to create the persistent volume claim. If not populated, it will default to the system default. This is only applied when a PVC is initially created, it is ignored otherwise.
string
No
None
name
The name of the default persistent volume claim to associate with this workspace. If not populated, it will use the workspace name to generate a new name for the PVC automatically