SDKs
GraphQL Configuration
GraphQL Configuration Guide for Tensor One
When configuring your environment via GraphQL, it's crucial to provide the required arguments correctly to ensure successful deployment and operation of Clusters or Templates.
Required Configuration Arguments
containerDiskInGb
- Description: Sets the disk size allocated for the container (in GB).
- Use Case: This space stores the OS, software, and temporary data.
- Type: Integer
- Example:
10
dockerArgs
- Description: Custom start command for the container. Overrides the default start command in the Docker image.
- Use Case: Useful for keeping a container running or adding setup steps.
- Type: String
- Example:
"sleep infinity"
env
- Description: Key-value pairs to define environment variables inside the container.
- Use Case: For setting runtime configs, credentials, or service URLs.
- Type: Dictionary or Object
- Example:
{ "DATABASE_URL": "postgres://user:password@localhost/dbname" }
imageName
- Description: Docker image to use, including repository and tag if applicable.
- Use Case: Specifies the runtime environment.
- Type: String
- Example:
"nginx:latest"
name
- Description: Unique identifier for the container or instance.
- Use Case: Naming and referencing in future actions.
- Type: String
- Example:
"my-app-container"
volumeInGb
- Description: Allocates persistent storage volume (in GB).
- Use Case: Used for storing data that must persist across container restarts.
- Type: Integer
- Example:
5
Ensure all required arguments are included in your GraphQL requests to avoid deployment failures. Optional fields may also be available to further tailor your configuration.