Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the built-in admission controller plug-in NamespaceLifecycle in Kubernetes

Shulou Source: shulou.com Published: 2022-05-31 18:20:54 09月21日 Update

This article shows you how to use the built-in access controller plug-in NamespaceLifecycle in Kubernetes. The content is concise and easy to understand. It will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.

NamespaceLifecycle is a built-in and default-enabled admission controller plug-in whose main responsibilities are as follows:

Prevent namespace reserved by the system (default, kube-system, and kube-public) from being deleted

Prevent the creation of resources in a namespace that does not exist

Prevent the creation of resources in the namespace in the process of deletion

Among them, the first two duties are relatively easy to understand, and the third duty is mainly to cooperate with other controllers. When a namespace is deleted, all resources in the namespace are cleaned (cascading deletion), which often takes a long time, during which the namespace object will be in the Terminating state (status.phase value is "Terminating"). In order not to affect other controller cleanup resources, re-creation of resources is prohibited when the namespace is in the deletion process.

The above is how to use the built-in access controller plug-in NamespaceLifecycle in Kubernetes. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Controllers controls resources plug-ins access responsibilities content skills knowledge process innovation concise concise objects that is articles time more status articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei MySQL Apple Microsoft Shulou Technology