title: 'Headless Cloud Connect' sidebar_label: 'Headless' description: 'Connect a Spice instance to Spice Cloud without an interactive terminal.' keywords: [spice.ai, cloud connect, enrollment key, docker, helm, headless] sidebar_position: 3 tags:
An enrollment key connects a container or unattended host to Spice Cloud, with no interactive terminal involved.
An enrollment key (opens in a new tab), which enrolls exactly one instance, and writable persistent storage for the identity the enrollment issues. A lost identity cannot be recovered — that instance has to enroll again.
spicedThe runtime log carries a portal link that creates the instance's project. Once enrollment succeeds, --token and the key are no longer needed; SPICE_CONFIG_DIR stays, on persistent storage.
spiced reads the key only from --token, so the key is in the process's command line, which other processes on the same host can list, for as long as that spiced process runs. The key is single-use, and spiced never writes it to a file. Recreate the container without --token once the runtime is ready. The identity lives on a named volume:
Once the runtime is ready, the container is recreated without --token:
The key comes from a Kubernetes Secret:
values.yaml injects it and mounts a volume for the identity:
Setting command replaces the chart's default command, which is what binds spiced to 0.0.0.0, so the list repeats the default's --http, --metrics, and --flight arguments. Without them, spiced listens only on 127.0.0.1, and the chart's probes on port 8090 cannot reach it.
Installing the chart:
Once the pod is ready, --token, its value, and SPICE_ENROLL_KEY come out of values.yaml, the bind arguments stay, and the release is upgraded again.
:::warning One replica only. Two replicas cannot share one Cloud Connect identity. :::
The Helm deployment guide (opens in a new tab) documents the rest of the chart.
--region records where the instance runs, which Spice Cloud uses to resolve its gateway:
The label is 2–64 lowercase letters, digits, or hyphens, starts and ends with a letter or digit, and is a declared value rather than a probed one.
The spiced command reference (opens in a new tab) documents every runtime option.