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 specification of the cargo

null or ImagePullPolicy (string)
ImagePullSecret
string or null

Secret to use when pulling the image

null or Config (object)
object

Metadata of the cargo (user defined)

Name
required
string

Name of the cargo

null or (ReplicationMode (ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object) or ReplicationMode (object)))
Secrets
Array of strings or null

List of secrets to use as environment variables

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