Question 650
A platform engineer edits the manifest for an existing VKS cluster and accidentally changes its namespace and API kind, creating a new invalid resource instead of modifying the intended cluster. Once the issue is resolved, which ongoing practice BEST prevents this type of failure?
Explanation
Correct Answer
Add schema validation, manifest diffs and target context assertions to VKS infrastructure-as-code pipelines. Editing YAML is only an effective infrastructure operation when its syntax, API semantics and reconciliation target are all correct.
Incorrect Answers
VSphere Namespace permissions govern actions within the Supervisor context and should follow least privilege independently from guest Kubernetes RBAC. For this case, Kubernetes and Supervisor APIs enforce kind, version, metadata scope and schema fields; declarative edits must target a supported resource and show observed reconciliation.
A Supervisor deployed with NSX VPC networking depends on compatible NSX components, correct network pools and an integrated route and service topology. However, the present prevention decision is grounded in: A platform engineer edits the manifest for an existing VKS cluster and accidentally changes its namespace and API kind, creating a new invalid resource instead of modifying the intended cluster. Here, validate the manifest against the actual API schema, inspect namespace and kubeconfig, run a server-side dry run and compare planned versus observed resource state.
Schedule periodic restore drills and monitor snapshot class compatibility with storage-driver upgrades. In this case, Kubernetes and Supervisor APIs enforce kind, version, metadata scope and schema fields; declarative edits must target a supported resource and show observed reconciliation.