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
- Select Data platform → Workspace management, then select your workspace.
- On the Overview tab, select Create.
- In the Create service dialog, select JupyterHub, then select Create service.

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
- Enter a Name.
- Enter a Description (optional).
- Select a Version.
- Select Next Step.

| Field | Description |
|---|---|
| Name | Required. The service name. 1 to 30 characters. Letters, numbers, and hyphens (-). |
| Description | Optional. A description of the service. |
| Version | Required. The JupyterHub version. |
Configure nodes
- Under Node, select a Storage Policy.
- Select a Type.
- Enter the Number of nodes.
- Select Enable auto scaling if you need it, then enter Max nodes.
- Select Next Step.

| Field | Description |
|---|---|
| Storage Policy | Required. The storage policy of the nodes, for example Premium-SSD. |
| Type | Required. The flavor of the nodes, for example 2 vCPU - 4096 MB RAM. |
| Number of nodes | Required. From 1 to 10. |
| Enable auto scaling | Optional. Turns on auto scaling for the nodes. Default: cleared. |
| Max nodes | Appears 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.
- Set up the Custom workspace, or clear it if you do not store user data in S3.
- Connect the Database.
- Select the keystore for Data encryption.
- Set up Single sign-on, or clear it to use basic authentication.
- Set a Custom domain, or clear Custom Domain if you do not need one.
- 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.
- Make sure Custom workspace is selected.
- Under Mount S3 storage, select the storage in Name.
- Enter the S3 workspace path.

| Field | Description |
|---|---|
| Custom workspace | Optional. Stores the data of your users in S3. Default: selected. |
| Name | The storage mounted on the workspace that holds the user data. See Manage workspace storage. |
| S3 workspace path | The 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.
- Select the database Type.
- Select From FPT Database Engine and choose the database in Database Name, or select Manual configuration.
- Enter or check the connection details: Host, Port, Database, Username, and Password.
- Select Test connection to check the connection from the workspace to the database.

| Field | Description |
|---|---|
| Type | Required. PostgreSQL. |
| From FPT Database Engine or Manual configuration | Required. 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 Name | Required with From FPT Database Engine. The FPT Database Engine database to use. The list appears above Host. |
| Host | Required. The host name or IP address of the PostgreSQL server. |
| Port | Required. The port of the database server, for example 5432. The form does not fill it in. |
| Database | Required. The name of the database. |
| Username | Required. The user that connects to the database. |
| Password | Required. The password of that user. |
Data encryption
JupyterHub uses a keystore of the workspace to encrypt sensitive data when it connects to the database.
- In Keystore name, select a keystore of the workspace.

| Field | Description |
|---|---|
| Keystore name | A 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.
- Make sure Single Sign On is selected.
- Under Identity provider, select a Provider: FPT ID, Google, or Keycloak.
- Fill in the fields of your provider, as described in the tables below.
With FPT ID, enter the email only.
| Field | Description |
|---|---|
| Required. Your FPT email address. |

With Google, enter the Google client and your email.
| Field | Description |
|---|---|
| Client ID | Required. The ID that authenticates the client with Google. |
| Client Secret | Required. The secret that authenticates the client with Google. |
| Required. Your email address. |

With Keycloak, enter the details of your Keycloak server and your email.
| Field | Description |
|---|---|
| Auth Provider name | Required. The name of the provider. |
| Realm | Required. The Keycloak realm, the space where users, groups, roles, clients, and other objects are managed and secured on their own. |
| Auth Server URL | Required. The base URL of the Keycloak server, which clients use to authenticate. End it with a slash (/). |
| Client ID | Required. The ID that authenticates the client with Keycloak. |
| Client Secret | Required. The secret that authenticates the client with Keycloak. |
| Required. The email address in Keycloak. |

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.
- Fill in the fields for your workspace type, as described in the tables below.
- 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.
| Field | Description |
|---|---|
| Custom Domain (field) | Required. The domain name of the service, for example abc.local or jupyter.example.com. |
| Certificate name | Required. A certificate imported on the Certificate tab of the workspace. |

In a Private workspace, you choose HTTPS or HTTP with TLS/SSL certificate.
| Field | Description |
|---|---|
| Custom Domain (field) | Required. The domain name of the service. |
| TLS/SSL certificate | Optional. Select it to serve the service over HTTPS. When it is cleared, the service runs over HTTP and needs no certificate. |
| Certificate name | Required with TLS/SSL certificate. A certificate imported on the Certificate tab of the workspace. |

Review and create
- Check the settings on the Review & Create screen.
- Select Create.

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