Overview
The container runtime is specified in the cluster template and determines how container images are pulled, started, and managed on cluster nodes. Xloud K8SaaS supportscontainerd as the recommended runtime for all Kubernetes versions 1.24 and above.
Docker runtime support was removed from Kubernetes upstream in version 1.24.
Supported Runtimes
| Runtime | Status | Kubernetes Support | Recommended For |
|---|---|---|---|
containerd | Recommended | 1.20+ | All production clusters on Kubernetes 1.24+ |
docker | Deprecated | Removed in 1.24 | Legacy clusters only |
Configure Runtime in a Template
Set the container runtime via thecontainer_runtime label in the cluster template:
Create template with containerd runtime
Verify runtime label on existing template
container_runtime=containerd.
containerd Configuration
Thecontainerd runtime is pre-configured in the cluster node bootstrap script.
Default containerd settings suitable for most deployments:
| Setting | Default | Description |
|---|---|---|
| CRI socket | /run/containerd/containerd.sock | Standard CRI socket path |
| Pause image | Configured by K8SaaS bootstrap | Kubernetes pause container image |
| Sandbox image | registry.k8s.io/pause:3.9 | Infrastructure sandbox container |
| Image pull policy | IfNotPresent | Default pull policy for workload containers |
Private Registry Configuration
If your organization uses an internal container registry, configure it in the cluster template using theinsecure_registry label:
Template with internal registry
Verify Runtime on Running Nodes
After cluster deployment, confirmcontainerd is active on all nodes:
Check runtime on all nodes
containerd://1.7.x
Next Steps
Network Drivers
Configure the CNI plugin for cluster network policy enforcement.
Template Management
Create and publish public templates with the correct runtime configuration.
Security
Harden container runtime configuration for production clusters.
Cluster Drivers
Review the provisioning driver that uses the template runtime configuration.