Ijaz Ahmad
Ijaz Ahmad

Reputation: 12110

Kubernetes admission controllers check

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

Upvotes: 1

Views: 1476

Answers (2)

Praveen
Praveen

Reputation: 81

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

Upvotes: 3

Suresh Vishnoi
Suresh Vishnoi

Reputation: 18403

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

Upvotes: 1

Related Questions