C3 AI Documentation Home

Configure Cloud Service for an Application Using C3 AI Console

After cloud services are connected to the C3 Agentic AI Platform, cloud services are configured through the applications in the C3 AI console. The CloudService Type is used to connect multiple third-party services that exist within the C3 AI Cloud Framework to the C3 Agentic AI Platform.

See Connect to Source Systems for more information.

Different applications can have multiple cloud services that are all managed from the application. See the App Type for more information.

After application creation, configure the cloud service using the CloudServiceConfig Type. See Stop and Stop Application from C3 AI Console.

The following sections provide instructions for configuring specific cloud services for an application in the C3 AI console once the application is started.

Configure JupyterHub for application in C3 AI console

Run the following command to configure JupyterHub in the C3 AI console for an application. See JupyterHub_Config Type for more information.

JavaScript
JupyterHub_Config.make({
            "id": `${appname}`, 
            "jupyterHosts": ["aks.c3dev.cloud"], 
            "jupyterSingleUserImageName": "aksdevc3.azurecr.io/c3-jupyterlab", 
            "jupyterSingleUserImageTag": "0.1.0",
            "jupyterServerEndPoint" : `https://aks.c3dev.cloud/${appname}/`, 
            "jupyterAuthenticationEndpoint": `https://aks.c3dev.cloud/${appname}/auth/login`,
            "jupyterHubEndpoint": `https://aks.c3dev.cloud/${appname}/jupyter/`, 
        }).setConfig();

After configuration, start JupyterHub by running the following command:

JavaScript
JupyterHub.ensureService()

Stop JupyterHub by running the following command:

JavaScript
JupyterHub.stop()

To see endpoints for JupyterHub, run the following command:

JavaScript
JupyterHub.inst(id: `${appname}`).endpoints()

Se also Configure and Use C3 AI-Managed JupyterLab Notebooks.

Configure PostgreSQL for application in C3 AI console

Run the following command to configure PostgreSQL in the C3 AI console for an application. See PostgresDB_Config Type for more information.

JavaScript
PostgresDB_Config.make({
            "id": `${appname}`,
            "persistenceSize": "100Gi",
            "resourcesLimitsCpu": "8000m",
            "resourcesLimitsMemory": "8Gi",
            "resourcesRequestsCpu": "8000m",
            "resourcesRequestsMemory": "8Gi",
        }).setConfig();

Once configured, start Postgres by running the following command:

JavaScript
PostgresDB.ensureService();

Stop Postgres by running the following command:

JavaScript
PostgresDB.terminate();

Configure Cassandra for application in C3 AI console

Run the following command to configure Cassandra in the C3 AI console for an application. See CassandraDB_Config Type for more information.

JavaScript
CassandraDB_Config.make({
                        "id": `${appname}`,
                        "replicaCount": "2",
                        "configClusterSize": "2",
                        "persistenceSize": "100Gi",
                        "resourcesLimitsCpu": "8000m",
                        "resourcesLimitsMemory": "8Gi",
                        "resourcesRequestsCpu": "4000m",
                        "resourcesRequestsMemory": "4Gi",
                        "imagePullSecrets": [`${registry-secret}`], 
                    }).setConfig();

Once configured, start Cassandra by running the following command:

JavaScript
CassandraDB.ensureService();

Stop Cassandra by running the following command:

JavaScript
CassandraDB.terminate();

See also

Was this page helpful?