What will happen to resources inside a namespace if the namespace is deleted?

Study for the Kubernetes Cloud Native Associate (KCNA) Certification 1 Test. Master the core concepts of Kubernetes with multiple-choice questions and detailed explanations. Prepare and boost your confidence for the KCNA certification exam!

Multiple Choice

What will happen to resources inside a namespace if the namespace is deleted?

Explanation:
Deleting a namespace triggers cascading deletion of all resources defined inside that namespace. The namespace serves as a boundary, so when it is removed, every namespaced object within it—pods, services, deployments, configmaps, secrets, and more—gets deleted along with it. Resources aren’t moved to kube-public, nor do they become cluster-scoped or survive without a namespace. Cluster-scoped resources (like nodes) are unaffected because they aren’t contained in a namespace.

Deleting a namespace triggers cascading deletion of all resources defined inside that namespace. The namespace serves as a boundary, so when it is removed, every namespaced object within it—pods, services, deployments, configmaps, secrets, and more—gets deleted along with it. Resources aren’t moved to kube-public, nor do they become cluster-scoped or survive without a namespace. Cluster-scoped resources (like nodes) are unaffected because they aren’t contained in a namespace.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy