Skip to main content

Cargo

In Nanocl, a Cargo refers to a replicable container configuration.
Once created the system will ensure your cargo is always running.
If too many errors occurs it may automatically rollback to a previous version if available in the history.
There is the openapi specification for a CargoSpecPartial used to create a cargo:

required
object (Config)

Container to create.

ImagePullPolicy
string or null
Enum: "Never" "Always" "IfNotPresent"

Policy for pulling images related to process objects (job, cargo, vm)

ImagePullSecret
string or null

Secret to use when pulling the image

object or null

Container to create.

object

Metadata of the cargo (user defined)

Name
required
string

Name of the cargo

any or null

Auto is used to automatically define that the number of replicas in the cluster Number is used to manually set the number of replicas Note: auto will ensure at least 1 replica exists in the cluster

Secrets
Array of strings or null

List of secrets to use as environment variables

{
  • "Name": "string",
  • "Metadata": {
    },
  • "InitContainer": {
    },
  • "Secrets": [
    ],
  • "ImagePullSecret": "string",
  • "ImagePullPolicy": "Never",
  • "Container": {
    },
  • "Replication": {
    }
}