Kubernetes Worker VM Stuck in Provisioning State

Problem

  • Kubernetes cluster is stuck in ScalingUp state & Machine Status is stuck in Provisioning state.

Environment

  • Private Cloud Director Kubernetes - v2025.4 and Higher
  • Component - Kubernetes

Cause

  • Review the machinedeployments from the <SHORTNAME_DEFAULT_SERVICE> namespace. There are no Ready replicas.
Bash
Copy
  • Further checking the machines object, the VM is in failed state. In the yaml output of the machine resource, it complains about a missing key.
Bash
Copy
Error in machine YAML
Copy

Resolution

  • As a prerequisite, public SSH key needs to be added in the PCD Virtualization before creating a Kubernetes cluster. The key name has to be default only, any other name must not be used. This key is used to bootstrapped into the worker nodes and will be used to access the worker nodes later.
  • This can be created via UI Networks and Security SSH Keys.
  • All users need to have individual SSH Key created.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard