Skip to main content

Manage a Managed Cluster

After your Managed Cluster is running, you can deploy workloads, expose Services, use persistent storage, scale worker pools, and manage its lifecycle.

Get the kubeconfig​

For workstation access, download the generated external kubeconfig. It already contains the supported external API endpoint; do not rewrite the server field:

kubectl get secret dev-cp-admin-kubeconfig-external -n acme-production \
-o jsonpath='{.data.admin\.conf}' | base64 -d > /tmp/dev-kubeconfig

kubectl --kubeconfig=/tmp/dev-kubeconfig get nodes

In the console, click Kubeconfig on the cluster detail page, then click Download in the Cluster kubeconfig dialog. The console returns the external kubeconfig when it exists. If the external Secret does not exist, the API endpoint is private. To enable external API exposure, open the Network tab, click Configure in the API connectivity card, select Enable public HTTPS API endpoint, and click Apply. As an alternative, connect through an operator-approved private network path.

Restrict public Kubernetes API clients​

Qualified ProjectInternal clusters accept spec.publicAPIAllowedCIDRs on the platform KdcCluster. This list restricts the public API endpoint and preserves the separate private worker transport:

spec:
network:
controlPlaneEndpointMode: ProjectInternal
publicApiEndpoint: true
publicAPIAllowedCIDRs:
- 198.51.100.7/32

This excerpt is not a complete cluster definition. Choose ProjectInternal at creation and provide the installation's measured worker MTU. For an existing cluster, keep its current endpoint mode; that mode is immutable. New clusters are open by default. Removing the field or setting [] requests unrestricted public API access. Restrictive lists are rejected for External topology because its public API and worker transport are shared. Do not restrict that shared transport with an unrelated annotation.

For a cluster with the Project internal endpoint mode, the Allowed client IPv4 CIDRs field is in the Configure API exposure dialog. To open it, click Configure in the API connectivity card of the Network tab. The field is read-only until the operator qualifies the matching backend and controllers. The Cluster status card of the Overview tab separates Requested public API client access from Public API source-policy enforcement. Verify access using the real CA and cluster credentials from allowed and denied client addresses. Use the installation's measured working worker MTU; source filtering does not repair an incorrect network MTU.

For REST exposure updates, omitting publicAPIAllowedCIDRs preserves the current list. Sending [] explicitly clears it. Disabling public API exposure remains a separate operation. Services deployed inside this Managed Cluster have their own exposure policy, described below.

Expose a Service with a LoadBalancer​

When you create a Service of type LoadBalancer inside your Managed Cluster, the Cloud Controller Manager (CCM) provisions a real LoadBalancer service in the platform cluster, giving your application an external IP.

How LoadBalancer Services work​

Managed Cluster LoadBalancer reconciliationA LoadBalancer Service named my-app on port 3000 exists in Managed Cluster dev. The per-cluster Cloud Controller Manager watches it and creates a corresponding LoadBalancer Service in the acme-production backing namespace on the platform management cluster. The platform Service receives an external IP, which is reported back to the Managed Cluster Service.watchescreatesManaged Servicedev · my-app:3000type LoadBalancerPer-cluster CCMwatches +reconcilesPlatform Serviceacme-productionexternal IP
The per-cluster CCM watches the tenant Service, creates its platform-side counterpart in the Project backing namespace, and reports the allocated external address back to the Managed Cluster.
  1. You create a Service of type LoadBalancer in the Managed Cluster
  2. The per-cluster CCM in the Project's backing namespace watches the Managed Cluster Service
  3. A corresponding LoadBalancer Service is created in the Project's backing namespace on the platform cluster
  4. An external IP is allocated and reported back to the Managed Cluster service

The CCM copies the platform's exposure annotations from the Managed Cluster Service to the platform-side Service, so the exposure methods from the Service exposure guide also work from inside a Managed Cluster, including an HTTPS route on the shared Gateway with a certificate. These annotations are copied:

  • service.nlb.kube-dc.com/: expose-route, route-hostname, route-port, route-redirect-to, https-redirect, tls-issuer, tls-issuer-kind, tls-secret, bind-on-eip, bind-on-default-gw-eip, create-gateway-backend
  • network.kube-dc.com/: allowed-cidrs, external-network-type

Other annotations are not copied. A change to a copied annotation on an existing Managed Cluster Service is applied to the platform-side Service, except external-network-type: the network is chosen when the Service is created, so delete and recreate the Service to change it.

Source allow-lists on HTTPS routes

A source allow-list (network.kube-dc.com/allowed-cidrs) on an HTTPS route (expose-route) from a Managed Cluster is not supported yet: the route stays Waiting. Publish the route without an allow-list.

For HTTPS, see Expose a Service with an HTTPS Gateway route.

Example: Expose a web application​

Inside your Managed Cluster, create a LoadBalancer service:

apiVersion: v1
kind: Service
metadata:
name: my-app-lb
namespace: default
annotations:
network.kube-dc.com/external-network-type: "public"
spec:
type: LoadBalancer
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
selector:
app: my-app
kubectl --kubeconfig=/tmp/dev-kubeconfig apply -f service.yaml

Service annotations​

AnnotationValueDescription
network.kube-dc.com/external-network-typepublicAllocate a public IP for the service
network.kube-dc.com/external-network-typecloudUse a cloud-internal IP (default)

Verify the Service​

# Check the service in the Managed Cluster
kubectl --kubeconfig=/tmp/dev-kubeconfig get svc my-app-lb

# Example output:
# NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
# my-app-lb LoadBalancer 10.96.201.161 100.65.0.169 80:30092/TCP 5m

The EXTERNAL-IP is reachable outside the Managed Cluster, but it is not always internet-routable. A cloud address is reachable only from configured platform networks; a public address is reachable from the internet.

Worked example​

A Langfuse deployment exposed with a LoadBalancer Service in a real Managed Cluster:

$ kubectl --kubeconfig=/tmp/dev-kubeconfig get svc langfuse-web-lb -n langfuse
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
langfuse-web-lb LoadBalancer 10.96.201.161 100.65.0.169 3000:30092/TCP 15d

The sample 100.65.0.169 address is from the cloud network and is not internet-routable. To request a public address, set network.kube-dc.com/external-network-type: public when you first create the Service. The resulting public address is shown in EXTERNAL-IP. Direct cross-Project access to cloud addresses is blocked by default.

Public IPs count against your Organization quota

Public EIPs are limited per Organization by your plan. If the quota is exhausted, the Managed Cluster Service stays at EXTERNAL-IP: <pending> for ever, and the quota error may not appear inside the Managed Cluster. Check the Public IPv4 usage on the Billing & quotas page of your Organization and the platform-side Service status before exposing services with external-network-type: public. Cloud IPs (the default) are not quota-limited.

Project-Internal VIPs (private LoadBalancer)​

The preceding CCM path allocates a cloud or a public IP on the platform side. A Managed Cluster can also expose a Service on a project-internal VIP: a stable private address inside your Project's VPC. It consumes no external IP and no quota, and it is reachable from everything in the same Project, which includes VMs, platform pods, and other Managed Clusters, but never from outside the Project.

Request one by setting the pool label and the load-balancer class:

apiVersion: v1
kind: Service
metadata:
name: my-app-internal
namespace: default
labels:
network.kube-dc.com/lb-pool: project
spec:
type: LoadBalancer
loadBalancerClass: kube-dc.com/project
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
selector:
app: my-app

The Service receives a VIP from the cluster's delegated block (a /28, 16 addresses, from the project's private VIP range):

$ kubectl --kubeconfig=/tmp/dev-kubeconfig get svc my-app-internal
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
my-app-internal LoadBalancer 10.96.11.197 10.242.0.208 80:31902/TCP 10s

How it works: the address is assigned inside your Managed Cluster, and the platform realizes it as a VPC load-balancer rule on the Project network. The VIP answers from anywhere in the Project without occupying an address in your Project subnet.

Notes and limits:

  • Both markers are required. The network.kube-dc.com/lb-pool: project label and loadBalancerClass: kube-dc.com/project must be set when the Service is created. A Service without them takes the CCM path above.
  • Nothing to enable. Every Managed Cluster gets its VIP capacity automatically when it is created. There is no request to make and no setting to turn on.
  • Capacity is 16 VIPs per block, and each cluster starts with one block. Need more? Raise spec.loadBalancer.blocks on the KdcCluster (up to 8).
  • KubeVirt-backed clusters only. Clusters running on an external infrastructure provider (such as CloudSigma) expose LoadBalancers through that provider's own path instead, described above.
  • externalTrafficPolicy: Local, SCTP, and client source-IP preservation are not supported on this path. Traffic arrives source-NATed, as it does for NodePort services.

Expose a Service with an HTTPS Gateway route​

For web applications, the simplest exposure method is a Gateway route: one annotation gives you HTTPS with an automatically provisioned Let's Encrypt certificate, served by the platform cluster's Envoy Gateway. This works from inside Managed Clusters because the CCM propagates the annotations.

The platform issues the certificate; you don't need to create an Issuer.

Step 1: Annotate a LoadBalancer service in the Managed Cluster​

apiVersion: v1
kind: Service
metadata:
name: my-app
namespace: default
annotations:
service.nlb.kube-dc.com/expose-route: "https"
service.nlb.kube-dc.com/route-hostname: "my-app-acme-production.example.com"
spec:
type: LoadBalancer
selector:
app: my-app
ports:
- port: 80
targetPort: 80
Always pin route-hostname

Without route-hostname, the hostname is auto-generated from the management-side service name (a UID-derived hash like af3d76ff…-acme-production.example.com). It is hard to read and it changes if the Managed Cluster Service is ever deleted and recreated. Set an explicit hostname under the cluster's wildcard domain (or your own domain with DNS pointed at the Gateway).

Step 2: Verify​

# Certificate + route are created in the Project's backing namespace
kubectl get certificate,httproute -n acme-production

# After ~1-2 minutes:
curl https://my-app-acme-production.example.com

Issuance typically completes in one to two minutes. http and tls-passthrough route types work the same way. The annotations a Managed Cluster Service can use are listed under How LoadBalancer Services work; the Service exposure guide describes each of them.

Persistent storage (KubeVirt CSI)​

For a KubeVirt-backed Managed Cluster with KubeVirt CSI enabled, the node driver runs in the Managed Cluster and the infrastructure-side CSI controller creates DataVolumes in the Project's backing namespace. This gives Managed Cluster workloads persistent block storage backed by the platform cluster.

How KubeVirt CSI works​

Managed Cluster persistent storageA five GiB PersistentVolumeClaim using the kubevirt StorageClass is created in a Managed Cluster. The infrastructure-side KubeVirt CSI controller creates a DataVolume and PersistentVolumeClaim using platform storage in the production Project backing namespace. The volume is hot-plugged to the selected Managed Cluster worker virtual machine and mounted into the Pod.createshot-plugTenant PVCmy-data · 5 GiBclass kubevirtKubeVirt CSIinfrastructuresideProject volumeDV + PVCProject storageWorker VMhot-pluggedmounted in Pod
KubeVirt CSI translates the tenant PVC into platform storage in the owning Project and hot-plugs the resulting volume to the worker VM where the Pod is scheduled.
  1. You create a PVC in the Managed Cluster using the kubevirt StorageClass
  2. The infrastructure-side CSI controller in the Project's backing namespace creates a DataVolume on the platform cluster
  3. The DataVolume is hotplugged to the worker VM where the pod is scheduled
  4. The volume is mounted into the pod as a regular block device

Example: Create a PersistentVolumeClaim​

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgres-data
namespace: default
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storageClassName: kubevirt

The kubevirt StorageClass is automatically created when KubeVirt CSI is enabled. It is set as the default StorageClass, so you can omit storageClassName if you prefer.

Verify storage​

# Check PVCs in the Managed Cluster
kubectl --kubeconfig=/tmp/dev-kubeconfig get pvc -n langfuse

# Example output:
# NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
# clickhouse-pvc Bound pvc-c09... 10Gi RWO kubevirt 15d
# langfuse-postgres-pvc Bound pvc-377... 5Gi RWO kubevirt 15d

Each PVC in the Managed Cluster corresponds to a DataVolume and PVC in the Project's backing namespace on the platform cluster:

# Corresponding PVCs in the Project's backing namespace
kubectl get pvc -n acme-production | grep pvc-c09
pvc-c09c6404-63ac-4ebc-9aab-671b4583b599 Bound pvc-2d6bb... 11362347344 RWO local-path 15d

StorageClass parameters​

The default kubevirt StorageClass uses the following configuration:

ParameterValueDescription
provisionercsi.kubevirt.ioKubeVirt CSI driver
busscsiDisk bus type for hotplug
infraStorageClassNamelocal-pathStorage class used on the platform cluster

Access modes​

Tenant PVC requestSupportedNotes
ReadWriteOnce (Filesystem)YesThe standard case. Volumes survive pod restarts and can be detached from one worker VM and hotplugged to another. With the default node-local infra storage, reattaching to a different worker only works when both worker VMs run on the same hypervisor host (see the troubleshooting note below); a replicated infra class like Ceph RBD removes this restriction.
ReadWriteOnce (Block)YesRaw block device inside the pod.
ReadWriteMany (Filesystem)NoRejected by the CSI driver (non-block volume with RWX access mode is not supported). Hotplugged disks cannot be safely filesystem-mounted on two VMs at once. For shared filesystems, run an in-cluster NFS/SeaweedFS on top of RWO volumes, or use S3 object storage.
ReadWriteMany (Block)⚠️ AdvancedSupported by the driver when the infra storage class supports RWX Block (Ceph RBD). Only for cluster-aware software that coordinates raw block access. Availability depends on the platform, so ask your operator.

Additional storage classes​

You can create additional Managed Cluster StorageClasses that map to any storage class offered to your Project on the platform cluster (for example replicated Ceph RBD instead of node-local storage):

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: kubevirt-rbd
provisioner: csi.kubevirt.io
parameters:
bus: scsi
infraStorageClassName: rbd-vm # storage class on the platform cluster
reclaimPolicy: Delete
allowVolumeExpansion: true

Choose an infrastructure storage class from the Disk storage class list of the Create managed cluster sheet, or one that your provider documents. StorageClasses are cluster-scoped and are not listable with a Project kubeconfig.

Scale the worker pool​

Scale with kubectl​

Use a JSON patch targeting only the replica count:

# Scale the first worker pool to 5 replicas
kubectl patch kdccluster dev -n acme-production --type=json \
-p '[{"op":"replace","path":"/spec/workers/0/replicas","value":5}]'
Never scale with a merge patch on spec.workers

spec.workers is a list. A merge patch like --type merge -p '{"spec":{"workers":[{"name":"workers","replicas":5}]}}' replaces the whole list, silently wiping cpuCores, memory, diskSize and image from your pool spec. New workers would then be created with default sizing instead of yours. Always use a JSON patch (--type=json) for single-field changes, or apply a full manifest that includes every field of every pool.

Add a worker pool​

Append a pool with JSON Patch so every existing pool, including optional autoscaling, labels, taints, drain, and network settings, remains unchanged:

kubectl patch kdccluster dev -n acme-production --type=json -p '[
{"op":"add","path":"/spec/workers/-","value":{
"name":"highmem-pool",
"replicas":2,
"cpuCores":4,
"memory":"16Gi",
"diskSize":"30Gi",
"image":"docker.io/shalb/ubuntu-2404-container-disk:v1.36.1",
"architecture":"amd64",
"infrastructureProvider":"kubevirt",
"storageType":"datavolume"
}}
]'

Provisioning time varies with image import, quota, and node readiness. Watch the KdcCluster status instead of relying on a fixed duration.

Scale to zero​

A worker pool can reach zero only while another pool has Ready workers. This guard prevents the last available worker pool from being stopped:

kubectl patch kdccluster dev -n acme-production --type=json \
-p '[{"op":"replace","path":"/spec/workers/0/replicas","value":0}]'

The control plane remains accessible. Scale the pool back up before removing or stopping the other Ready pool.

Autoscale a worker pool​

Instead of scaling by hand, a pool can add nodes on its own when workloads do not fit. The model is the same as an EKS node group: replicas is still the desired node count, and the platform moves it between minReplicas and maxReplicas.

In the console, open the Workers tab of the cluster and turn on the switch in the Autoscaling column of the pool. For all settings, select Configure autoscaling in the actions menu of the pool. The dialog has Enable autoscaling, Autoscaling mode, Minimum workers, and Maximum workers. You can also use kubectl:

kubectl patch kdccluster dev -n acme-production --type=json -p '[
{"op":"add","path":"/spec/workers/0/autoscaling",
"value":{"enabled":true,"minReplicas":2,"maxReplicas":8}}
]'
replicas must be inside the bounds

While autoscaling is enabled, replicas has to be within [minReplicas, maxReplicas]. If the pool's current count is outside the bounds you are setting, change both in the same patch. The console adjusts the desired replicas into the bounds.

What causes a node to be added: a pod is Pending because the scheduler could not place it, and that pod's CPU/memory requests would fit on a new node of this pool. The autoscaler ignores pods a new node cannot help. A pod waiting on a PersistentVolumeClaim, a pod requesting more resources than one node of this pool provides, or a pod pinned by node affinity elsewhere.

In the default mode, nodes are only added, never removed. To shrink a pool, lower replicas or maxReplicas yourself, or switch the pool to full autoscaling, below.

Remove idle nodes (full autoscaling)​

Set mode: ClusterAutoscaler to hand the pool's node count entirely to the platform. It still adds nodes for pending pods, and additionally removes a node after it has been idle for the stabilization window. Pods are drained safely (respecting PodDisruptionBudgets) before the node is deleted. In the console, select Cluster Autoscaler · scale up and down in the Autoscaling mode list of the Configure autoscaling dialog. Set behavior.scaleDown.enabled: true in the YAML editor of the same dialog.

kubectl patch kdccluster dev -n acme-production --type=json -p '[
{"op":"add","path":"/spec/workers/0/autoscaling",
"value":{"enabled":true,"mode":"ClusterAutoscaler",
"minReplicas":2,"maxReplicas":8,
"behavior":{"scaleDown":{"enabled":true,
"stabilizationWindowSeconds":600}}}}
]'

Things to know in this mode:

  • The node count is platform-managed. Do not set replicas by hand. The platform owns it and will move it between the bounds. The console disables Scale workers for such pools.
  • minReplicas must be at least 1. Scale-to-zero is not available.
  • Scale-down is per pool, and OFF until you ask for it. Selecting this mode does not by itself remove anything: behavior.scaleDown.enabled must be set to true. Left false, or with the block omitted, the pool is grow-only. It still ADDS nodes for pending pods, which is what distinguishes this from pinning minReplicas = maxReplicas, where nothing moves in either direction. One pool can shrink while a sibling never does.
  • behavior.scaleDown.stabilizationWindowSeconds is how long a node must sit below the threshold before removal (default 10 minutes); behavior.scaleDown.utilizationThreshold is that threshold as a percentage (default 50); cooldownSeconds sets the quiet period after a scale-up before any removal is considered.
  • "Idle" means requests, not live load. A node qualifies when the CPU and memory reserved by its pods fall below the threshold, so a node running at 5% CPU whose pods reserve 80% of it is not removable.

Scale-up tuning does not apply in this mode. metrics[] and behavior.scaleUp are read only by mode: Builtin. Under ClusterAutoscaler, nodes are added when pods cannot be scheduled. Upstream has no utilisation trigger and no per-step cap, so the stabilization window, maxNodesPerStep and the scale-up cooldown below are ignored here. Use mode: Builtin if you want CPU/memory-driven scale-up.

Under mode: Builtin, scale-ups are deliberately unhurried: demand must persist for about two minutes, at most two nodes are added per step, and there is a cooldown of five minutes between steps. Tune per pool if needed:

autoscaling:
enabled: true
minReplicas: 2
maxReplicas: 8
behavior:
scaleUp:
stabilizationWindowSeconds: 120
maxNodesPerStep: 2
cooldownSeconds: 300

Why didn't my pool grow?​

In the console, expand the pool row in the Workers tab. Last decision shows the latest scaling reason, and Scaling blocked shows a limit when one applies. From kubectl:

kubectl get kdccluster dev -n acme-production \
-o jsonpath='{.status.workerPools[0].autoscaling}'
{
"mode": "PendingPods",
"minReplicas": 2,
"maxReplicas": 8,
"lastScaleTime": "2026-07-31T13:49:24Z",
"lastScaleReason": "3 unschedulable pod(s) fit this pool; +1 node(s)",
"limitedBy": ""
}

limitedBy is empty when nothing is holding the pool back. Otherwise:

limitedByWhat it means
MaxThe pool is at maxReplicas. Raise it to allow more nodes.
QuotaYour Organization or Project quota would be exceeded.
PlacementThe infrastructure could not place another node right now.
RollingUpdateAn upgrade or rollout is in progress; scaling resumes afterwards.

Upgrade the Kubernetes version​

A Managed Cluster upgrade updates the control plane first and then replaces workers using a rolling strategy. Plan a maintenance window: application availability depends on replicas, disruption budgets, spare capacity, and storage topology.

Choose a supported version​

The table below is an example catalog and can age between documentation releases. The Kubernetes version list of the console is the source of truth. Choose the exact worker image paired with the target control-plane version.

VersionWorker ImageStatus
v1.36.1docker.io/shalb/ubuntu-2404-container-disk:v1.36.1Latest
v1.35.0docker.io/shalb/ubuntu-2404-container-disk:v1.35.2Supported
v1.34.0quay.io/capk/ubuntu-2404-container-disk:v1.34.1Supported

Upgrade in the console​

When an upgrade is available, the cluster detail page shows an Upgrade to vX.Y.Z link next to the version in the header. Otherwise, the header shows Up to date.

The header of the cluster detail page, with the current version and the Upgrade to vX.Y.Z link

To upgrade a cluster:

  1. Open the cluster detail page.
  2. Click Upgrade to vX.Y.Z. The Upgrade Kubernetes dialog shows the current version, the target version, and the worker image.
  3. Click Apply. The platform upgrades the control plane, then rolls the worker images.

You can also select Upgrade Kubernetes in the actions menu of the cluster. The phase changes during the upgrade and returns to Ready after it completes.

Upgrade with kubectl​

Step 1: Check current version

kubectl get kdccluster dev -n acme-production
# NAME VERSION PHASE ENDPOINT DATASTORE AGE
# dev v1.34.0 Ready ... dev-etcd 29d

Step 2: Upgrade version and worker image

Patch both spec.version and the worker image in a single command:

kubectl patch kdccluster dev -n acme-production --type=json -p '[
{"op":"replace","path":"/spec/version","value":"v1.35.0"},
{"op":"replace","path":"/spec/workers/0/image","value":"docker.io/shalb/ubuntu-2404-container-disk:v1.35.2"}
]'

For clusters with multiple worker pools, update each pool's image:

kubectl patch kdccluster dev -n acme-production --type=json -p '[
{"op":"replace","path":"/spec/version","value":"v1.35.0"},
{"op":"replace","path":"/spec/workers/0/image","value":"docker.io/shalb/ubuntu-2404-container-disk:v1.35.2"},
{"op":"replace","path":"/spec/workers/1/image","value":"docker.io/shalb/ubuntu-2404-container-disk:v1.35.2"}
]'

Step 3: Monitor the upgrade

The platform first reconciles the control plane, then replaces workers with the catalog-paired image. Completion time depends on image pulls, node readiness, workload disruption constraints, and available Project quota.

# Watch cluster status
kubectl get kdccluster dev -n acme-production -w

# Watch worker-pool rollout through the Project-visible resource
kubectl get machinedeployments -n acme-production -w

During the worker rollout, old and new Machines can coexist. Keep enough quota for surge capacity and verify application replicas and disruption budgets; single-replica or node-local workloads can be interrupted.

Step 4: Verify the upgrade

# Check cluster version
kubectl get kdccluster dev -n acme-production
# NAME VERSION PHASE ...
# dev v1.35.0 Ready ...

# Check node versions inside the Managed Cluster
kubectl --kubeconfig=/tmp/dev-kubeconfig get nodes -o wide
# NAME STATUS VERSION CONTAINER-RUNTIME
# dev-workers-xxx-yyy Ready v1.35.2 containerd://2.2.2

Important notes​

  • Sequential minor versions only: You must upgrade one minor version at a time (for example, v1.34 → v1.35). Skipping versions is not supported.
  • No downgrades: Kubernetes version downgrades are not supported. The system will reject any attempt to lower the version.
  • Rolling replacement: A new worker is created before an old worker is removed. Keep multiple application replicas, suitable disruption budgets, and enough spare quota; the platform does not guarantee uninterrupted workloads.
  • Image must match version: Always update the worker image alongside the version. The image contains the matching kubelet and kubeadm binaries.

Delete a cluster​

Delete in the console​

To delete a cluster:

  1. Select Delete cluster in the actions menu of the cluster. The Delete managed cluster dialog opens.
  2. To keep a final backup, leave Save a final etcd snapshot before deleting selected, click Take final snapshot, and wait for Backup job completed.
  3. Optional: to delete without a final snapshot, clear Save a final etcd snapshot before deleting.
  4. In the confirmation field, type the cluster name.
  5. Click Delete cluster.

While Save a final etcd snapshot before deleting is selected, the console does not delete the cluster until the snapshot completes.

The Delete cluster card of the Backups tab opens the same dialog.

Delete with kubectl​

kubectl delete kdccluster dev -n acme-production

Deletion is fully automated. The controller removes resources in the correct order:

  1. Worker nodes (MachineDeployments, VMs)
  2. Control plane (TenantControlPlane)
  3. Cluster API resources
  4. CCM deployment
  5. Services and EIPs
  6. Dedicated datastore (if applicable)
warning

Deleting a cluster is irreversible. All workloads, services, and data inside the cluster will be permanently removed. Back up any important data before deleting.

Troubleshooting​

Cluster stuck in provisioning​

# Check events in the Project backing namespace
kubectl get events -n acme-production --sort-by='.lastTimestamp' | tail -20

# Check KdcCluster status
kubectl describe kdccluster dev -n acme-production

# Check control plane pods
kubectl get pods -n acme-production -l kamaji.clastix.io/name=dev-cp

Workers not joining​

# Check MachineDeployment status
kubectl get machinedeployments -n acme-production


# Check worker VM status
kubectl get vmi -n acme-production

Service not getting external IP​

# Verify CCM is running
kubectl get deploy -n acme-production -l k8s-app=kccm-dev

# Check CCM logs
kubectl logs -n acme-production -l k8s-app=kccm-dev

# Verify the service annotation in Managed Cluster
kubectl --kubeconfig=/tmp/dev-kubeconfig get svc my-app-lb -o yaml | grep -A2 annotations

Gateway route returns 503 after about 10 seconds​

The route and certificate are fine, but the request reaches the Managed Cluster's worker nodes and nothing answers. The platform forwards the request to the Service's NodePort on your workers; when no pod is ready behind the Service, the connection is dropped rather than refused, so the Gateway waits for its 10-second connect timeout and answers 503.

Check the Service inside the Managed Cluster:

# Must list at least one ready pod address
kubectl --kubeconfig=/tmp/dev-kubeconfig get endpointslices \
-l kubernetes.io/service-name=my-app

# The pods must be Running and Ready, and carry the Service's selector labels
kubectl --kubeconfig=/tmp/dev-kubeconfig get pods -l app=my-app -o wide

# targetPort must be the port the container actually listens on
kubectl --kubeconfig=/tmp/dev-kubeconfig get svc my-app -o jsonpath='{.spec.ports}'

Common causes:

  • the selector does not match the pods' labels, or the pods are not Ready;
  • targetPort is not the container's listening port;
  • externalTrafficPolicy: Local on a Service whose pods do not run on every worker (requests that land on a worker without a local pod are dropped);
  • a NetworkPolicy or Cilium policy that only admits traffic from inside the Managed Cluster. Gateway traffic arrives from outside it, so allow ingress to the pods from outside the cluster.

PVC stuck in Pending​

# Check the CSI controller logs on the platform cluster
kubectl logs -n acme-production -l app=kubevirt-csi-driver --all-containers

# Check the DataVolume import on the platform cluster
kubectl get dv -n acme-production

# Check the CSI node daemonset in the Managed Cluster
kubectl --kubeconfig=/tmp/dev-kubeconfig get pods -n kubevirt-csi-driver

# Verify StorageClass exists in Managed Cluster
kubectl --kubeconfig=/tmp/dev-kubeconfig get storageclass

A PVC requesting ReadWriteMany with Filesystem mode stays Pending with the event non-block volume with RWX access mode is not supported. This is by design, see Access modes.

Pod stuck in ContainerCreating (couldn't find device by serial id)​

Volume hotplug into a worker VM is batched per VM: while any pending volume on the same worker cannot finish provisioning (for example a stuck DataVolume import), KubeVirt waits before attaching the other volumes to that VM too. Already-bound volumes then fail to mount with couldn't find device by serial id until the broken sibling is resolved.

Fix the failing PVC first (check kubectl get dv -n acme-production on the platform cluster for ImportInProgress with restarts), or delete it. The healthy volumes can attach when the controller retries.

Pod stuck after rescheduling to another worker​

With the default kubevirt StorageClass, the backing disk lives on node-local storage of the hypervisor host where it was first provisioned. If your pod is later rescheduled to a worker VM running on a different hypervisor host, the volume cannot follow: on the platform cluster the hotplug helper pod reports didn't match PersistentVolume's node affinity, and inside the Managed Cluster the pod hangs in ContainerCreating with couldn't find device by serial id.

Identify the worker on the disk's original hypervisor host. Leave that known-good worker schedulable, cordon every other candidate, and wait for the replacement Pod to become Ready there before restoring normal scheduling:

# Do not include <known-good-worker> in this list.
kubectl --kubeconfig=/tmp/dev-kubeconfig cordon <other-worker-1> <other-worker-2>
kubectl --kubeconfig=/tmp/dev-kubeconfig delete pod <stuck-pod>
kubectl --kubeconfig=/tmp/dev-kubeconfig get pods -l app=<label> -w -o wide

# After the replacement is Ready on <known-good-worker>:
kubectl --kubeconfig=/tmp/dev-kubeconfig uncordon <other-worker-1> <other-worker-2>

For workloads that must survive rescheduling to any worker, use a Managed Cluster StorageClass backed by replicated storage (see Additional storage classes) if your platform offers one.

End-to-end Example: WordPress​

A complete stateful application, with MariaDB and WordPress on persistent volumes, exposed over HTTPS through the platform cluster's Gateway. Apply inside the Managed Cluster (the platform issues the HTTPS certificate, as in Expose a Service with an HTTPS Gateway Route). Create the namespace and generate unique database credentials before applying the workload manifest:

kubectl --kubeconfig=/tmp/dev-kubeconfig create namespace wordpress
kubectl --kubeconfig=/tmp/dev-kubeconfig -n wordpress create secret generic mariadb-auth \
--from-literal=root-password="$(openssl rand -base64 24)" \
--from-literal=password="$(openssl rand -base64 24)"

Save the remaining resources as wordpress.yaml:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mariadb-data
namespace: wordpress
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wordpress-data
namespace: wordpress
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: mariadb
namespace: wordpress
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: mariadb
template:
metadata:
labels:
app: mariadb
spec:
containers:
- name: mariadb
image: mariadb:11.4
env:
- name: MARIADB_ROOT_PASSWORD
valueFrom: {secretKeyRef: {name: mariadb-auth, key: root-password}}
- name: MARIADB_DATABASE
value: wordpress
- name: MARIADB_USER
value: wordpress
- name: MARIADB_PASSWORD
valueFrom: {secretKeyRef: {name: mariadb-auth, key: password}}
ports:
- containerPort: 3306
volumeMounts:
- name: data
mountPath: /var/lib/mysql
volumes:
- name: data
persistentVolumeClaim:
claimName: mariadb-data
---
apiVersion: v1
kind: Service
metadata:
name: mariadb
namespace: wordpress
spec:
selector:
app: mariadb
ports:
- port: 3306
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
namespace: wordpress
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: wordpress
template:
metadata:
labels:
app: wordpress
spec:
containers:
- name: wordpress
image: wordpress:6-apache
env:
- name: WORDPRESS_DB_HOST
value: mariadb.wordpress.svc.cluster.local
- name: WORDPRESS_DB_NAME
value: wordpress
- name: WORDPRESS_DB_USER
value: wordpress
- name: WORDPRESS_DB_PASSWORD
valueFrom: {secretKeyRef: {name: mariadb-auth, key: password}}
ports:
- containerPort: 80
volumeMounts:
- name: data
mountPath: /var/www/html
volumes:
- name: data
persistentVolumeClaim:
claimName: wordpress-data
---
apiVersion: v1
kind: Service
metadata:
name: wordpress
namespace: wordpress
annotations:
service.nlb.kube-dc.com/expose-route: "https"
service.nlb.kube-dc.com/route-hostname: "wordpress-acme-production.example.com"
spec:
type: LoadBalancer
selector:
app: wordpress
ports:
- port: 80
targetPort: 80
kubectl --kubeconfig=/tmp/dev-kubeconfig apply -f wordpress.yaml

Wait for the PVCs, worker-disk attachments, certificate, and HTTPRoute to report Ready before opening the configured hostname. Data survives Pod restarts; for rescheduling across workers, read the placement caveat of the default storage class.

Quick reference​

OperationCommand
List clusterskubectl get kdccluster -n acme-production
Get cluster detailskubectl describe kdccluster dev -n acme-production
Get kubeconfigkubectl get secret dev-cp-admin-kubeconfig-external -n acme-production -o jsonpath='{.data.admin\.conf}' | base64 -d (see Get the kubeconfig)
Check endpointkubectl get kdccluster dev -n acme-production -o jsonpath='{.status.endpoint}'
Scale workerskubectl patch kdccluster dev -n acme-production --type=json -p '[{"op":"replace","path":"/spec/workers/0/replicas","value":5}]'
Enable autoscalingkubectl patch kdccluster dev -n acme-production --type=json -p '[{"op":"add","path":"/spec/workers/0/autoscaling","value":{"enabled":true,"minReplicas":2,"maxReplicas":8}}]'
Enable autoscaling with node removalkubectl patch kdccluster dev -n acme-production --type=json -p '[{"op":"add","path":"/spec/workers/0/autoscaling","value":{"enabled":true,"mode":"ClusterAutoscaler","minReplicas":2,"maxReplicas":8,"behavior":{"scaleDown":{"enabled":true}}}}]'
Check autoscaling statekubectl get kdccluster dev -n acme-production -o jsonpath='{.status.workerPools[0].autoscaling}'
Delete clusterkubectl delete kdccluster dev -n acme-production
Check datastorekubectl get kdcclusterdatastores -n acme-production

Next steps​