Skip to main content

Create a JupyterHub service

Create a JupyterHub service to give your users a shared Jupyter Notebook environment in your workspace. The Setup JupyterHub form has four screens: Basic Information, Nodes Configuration, Additional properties, and Review & Create.

Prerequisites​

  • A workspace whose Status is Connected. See Create a workspace.
  • A PostgreSQL database that the workspace can reach. You can use a database you created in FPT Database Engine or your own database.
  • A keystore in the workspace for data encryption. See Manage keystores.
  • To store user data in S3, a storage mounted on the workspace with the Airflow - JupyterHub - Spark Service category. See Manage workspace storage.
  • For single sign-on (SSO), the details of your FPT ID, Google, or Keycloak provider.
  • To use a custom domain, a certificate imported on the Certificate tab of the workspace. See Manage certificates.

Open the create form​

  1. Select Data platform → Workspace management, then select your workspace.
  2. On the Overview tab, select Create.
  3. In the Create service dialog, select JupyterHub, then select Create service.

Create service dialog with the Category filter and the service cards, including the JupyterHub card

In a workspace with no services yet, the Overview tab shows Create first service instead. Select the JupyterHub card there to open the form directly.

The Setup JupyterHub form opens on the Basic Information screen.

Enter basic information​

  1. Enter a Name.
  2. Enter a Description (optional).
  3. Select a Version.
  4. Select Next Step.

Basic Information screen of the Setup JupyterHub form with the Name, Description, and Version fields

FieldDescription
NameRequired. The service name. 1 to 30 characters. Letters, numbers, and hyphens (-).
DescriptionOptional. A description of the service.
VersionRequired. The JupyterHub version.

Configure nodes​

  1. Under Node, select a Storage Policy.
  2. Select a Type.
  3. Enter the Number of nodes.
  4. Select Enable auto scaling if you need it, then enter Max nodes.
  5. Select Next Step.

Nodes Configuration screen of the Setup JupyterHub form with the Storage Policy, Type, and Number of nodes fields and the Enable auto scaling option

FieldDescription
Storage PolicyRequired. The storage policy of the nodes, for example Premium-SSD.
TypeRequired. The flavor of the nodes, for example 2 vCPU - 4096 MB RAM.
Number of nodesRequired. From 1 to 10.
Enable auto scalingOptional. Turns on auto scaling for the nodes. Default: cleared.
Max nodesAppears when you select Enable auto scaling. The largest number of nodes that auto scaling can reach.

Configure additional properties​

On the Additional properties screen, choose where JupyterHub stores the data of your users, connect its database, and select its keystore. Then set up sign-in and a custom domain if you need them.

  1. Set up the Custom workspace, or clear it if you do not store user data in S3.
  2. Connect the Database.
  3. Select the keystore for Data encryption.
  4. Set up Single sign-on, or clear it to use basic authentication.
  5. Set a Custom domain, or clear Custom Domain if you do not need one.
  6. Select Next Step.

Custom workspace​

With Custom workspace, JupyterHub stores the data of your users in S3. Mount S3 storage sets the folder where the workspace code of each user is kept.

Custom workspace is selected by default. When you clear it, the Mount S3 storage section disappears.

  1. Make sure Custom workspace is selected.
  2. Under Mount S3 storage, select the storage in Name.
  3. Enter the S3 workspace path.

Custom workspace option selected, with the Name and S3 workspace path fields of the Mount S3 storage section

FieldDescription
Custom workspaceOptional. Stores the data of your users in S3. Default: selected.
NameThe storage mounted on the workspace that holds the user data. See Manage workspace storage.
S3 workspace pathThe folder in the storage for the workspace code of your users. Enter it without a leading or trailing slash.

Database​

JupyterHub connects to a PostgreSQL database. Use a database you created in FPT Database Engine or your own database.

  1. Select the database Type.
  2. Select From FPT Database Engine and choose the database in Database Name, or select Manual configuration.
  3. Enter or check the connection details: Host, Port, Database, Username, and Password.
  4. Select Test connection to check the connection from the workspace to the database.

Database section with Type set to PostgreSQL, Manual configuration selected, the Host, Port, Database, Username, and Password fields, and the Test connection button

FieldDescription
TypeRequired. PostgreSQL.
From FPT Database Engine or Manual configurationRequired. From FPT Database Engine uses a database you created in FPT Database Engine. Manual configuration takes the connection details of your own database. Default: Manual configuration.
Database NameRequired with From FPT Database Engine. The FPT Database Engine database to use. The list appears above Host.
HostRequired. The host name or IP address of the PostgreSQL server.
PortRequired. The port of the database server, for example 5432. The form does not fill it in.
DatabaseRequired. The name of the database.
UsernameRequired. The user that connects to the database.
PasswordRequired. The password of that user.

Data encryption​

JupyterHub uses a keystore of the workspace to encrypt sensitive data when it connects to the database.

  1. In Keystore name, select a keystore of the workspace.

Data encryption section with the Keystore name list

FieldDescription
Keystore nameA keystore of the workspace. It encrypts sensitive data when JupyterHub connects to the database. See Manage keystores.

Single sign-on​

Without single sign-on (SSO), JupyterHub uses basic authentication. Turn on SSO to sign in to JupyterHub through FPT ID, Google, or Keycloak.

Single Sign On is selected by default. When you clear it, no other field appears.

  1. Make sure Single Sign On is selected.
  2. Under Identity provider, select a Provider: FPT ID, Google, or Keycloak.
  3. Fill in the fields of your provider, as described in the tables below.

With FPT ID, enter the email only.

FieldDescription
EmailRequired. Your FPT email address.

Single sign-on section of an earlier form version, with an Enable SSO check box, FPT ID selected as Provider, and an Email field under Admin user

With Google, enter the Google client and your email.

FieldDescription
Client IDRequired. The ID that authenticates the client with Google.
Client SecretRequired. The secret that authenticates the client with Google.
EmailRequired. Your email address.

Single sign-on section of an earlier form version, with Google selected as Provider, the Client ID and Client Secret fields, and an Email field under Admin user

With Keycloak, enter the details of your Keycloak server and your email.

FieldDescription
Auth Provider nameRequired. The name of the provider.
RealmRequired. The Keycloak realm, the space where users, groups, roles, clients, and other objects are managed and secured on their own.
Auth Server URLRequired. The base URL of the Keycloak server, which clients use to authenticate. End it with a slash (/).
Client IDRequired. The ID that authenticates the client with Keycloak.
Client SecretRequired. The secret that authenticates the client with Keycloak.
EmailRequired. The email address in Keycloak.

Single sign-on section of an earlier form version, with Keycloak selected as Provider, the Discovery URL, Realm, Client ID, and Client Secret fields, and an Email field under Admin user

Custom domain​

A custom domain lets you reach the service at your own domain name. The fields depend on the Type of the workspace: a Public workspace always serves the service over HTTPS, and a Private workspace lets you choose HTTPS or HTTP.

Custom Domain is selected by default. Clear it if you do not need a custom domain.

  1. Fill in the fields for your workspace type, as described in the tables below.
  2. Select Validate to check that the certificate is valid for the domain.

Manage certificate, next to Certificate name, opens certificate management, where you can import a certificate that is not in the list yet. See Manage certificates.

In a Public workspace, the form has no TLS/SSL certificate option because HTTPS is always on.

FieldDescription
Custom Domain (field)Required. The domain name of the service, for example abc.local or jupyter.example.com.
Certificate nameRequired. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Public workspace with the Custom Domain and Certificate name fields and the Manage certificate and Validate buttons

In a Private workspace, you choose HTTPS or HTTP with TLS/SSL certificate.

FieldDescription
Custom Domain (field)Required. The domain name of the service.
TLS/SSL certificateOptional. Select it to serve the service over HTTPS. When it is cleared, the service runs over HTTP and needs no certificate.
Certificate nameRequired with TLS/SSL certificate. A certificate imported on the Certificate tab of the workspace.

Custom Domain section in a Private workspace with the Custom Domain field, the TLS/SSL certificate option, the Certificate name field, and the Manage certificate and Validate buttons

Review and create​

  1. Check the settings on the Review & Create screen.
  2. Select Create.

Review & Create screen of the Setup JupyterHub form with the Instance Information, Node Configuration, Mount S3 storage, Database, Data encryption, and Custom Domain sections and the Create button

The service is ready when its Status is Healthy. This takes about 10 minutes.

Next steps​