简体   繁体   中英

Kubernetes admission controllers check

How can I check which admission controllers are enabled by default on the cluster using some command like kubectl.

You can try using the following command Kubectl cluster-info dump | grep -i admission

There is no subcommand to list the enable admission controller with kubectl.

Nevertheless, you can get this information from kube-apiserver admission controller enabled-by-default

kube-apiserver -h | grep enable-admission-plugins

for k8s 1.16

  • NamespaceLifecycle
  • LimitRanger
  • ServiceAccount
  • TaintNodesByCondition
  • Priority
  • DefaultTolerationSeconds,
  • DefaultStorageClass
  • StorageObjectInUseProtection,
  • PersistentVolumeClaimResize
  • MutatingAdmissionWebhook,
  • ValidatingAdmissionWebhook
  • RuntimeClass
  • ResourceQuota

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM