Skyline Health reports that a cluster's status has degraded.
The issue is observed in the vSphere Client where:
/var/run/log/infravisor.log indicating a hostname validation failure:
...ValidatePodCreate failed: [spec.nodeName: Invalid value: \"<Node_name>\": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')]"
The root cause is an improperly formatted ESXi hostname.
The hostname, when checked via hostname or uname -a on the ESXi host, is found to end with a trailing dot (.).
The trailing dot violates the RFC 1123 naming standard required by the vSphere Cluster Services (vCLS). vCLS uses Kubernetes-based components to establish quorum, and the system rejects hostnames that fail the RFC 1123 validation, preventing the vCLS Pods from being created and deployed successfully.
To resolve the degraded cluster status, the trailing dot must be removed from the ESXi hostname:
esxcli system hostname set --host=<hostname without dot>
esxcli system hostname get