Question 430
A script deletes a test namespace in a production Supervisor because its active kubeconfig context silently points to the wrong vSphere endpoint. Once the issue is resolved, which ongoing practice BEST prevents this type of failure?
Explanation
Correct Answer
Require context and target confirmation in automation before high-impact kubectl apply or delete actions. That is important in this case because kubectl interprets a declarative request against the current API server, namespace and credentials; Supervisor and guest-cluster contexts expose different resource types and authority. The scenario was: A script deletes a test namespace in a production Supervisor because its active kubeconfig context silently points to the wrong vSphere endpoint.
Incorrect Answers
A vSphere Namespace defines resource consumption boundaries and storage permissions that control downstream VKS cluster and workload provisioning. For this case, kubectl interprets a declarative request against the current API server, namespace and credentials; Supervisor and guest-cluster contexts expose different resource types and authority.
Maintain documented compute-model criteria so platform teams do not confuse VM Service with containerized application delivery. This case instead turns on kubectl context selection for VKS workload cluster creation; verify kubeconfig context, cluster server and current namespace, then submit the appropriate supported Cluster API resources with a limited identity.
VSphere Namespace permissions govern actions within the Supervisor context and should follow least privilege independently from guest Kubernetes RBAC. Here, verify kubeconfig context, cluster server and current namespace, then submit the appropriate supported Cluster API resources with a limited identity.