Skip to content

Instantly share code, notes, and snippets.

@dreampuf
Created April 8, 2019 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dreampuf/7dfff34e93526db2e088de1195c7fac5 to your computer and use it in GitHub Desktop.
Save dreampuf/7dfff34e93526db2e088de1195c7fac5 to your computer and use it in GitHub Desktop.
How to enable admission-pulgins in kubernetes of docker-desktop
# Install docker and kubernetes first
# Helpful link: https://www.docker.com/products/docker-desktop
# Then you need to get into the virtual machine by (it may change in the future, but the path should be similar)
screen ~/Library/Containers/com.docker.docker/Data/vms/0/tty
# Change the line in /etc/kubernetes/manifests/kube-apiserver.yaml
# - --enable-admission-plugins=Initializers,NodeRestriction
# to
# - --enable-admission-plugins=Initializers,NodeRestriction,ValidatingAdmissionWebhook,MutatingAdmissionWebhook
# Restart kubernetes by restart everything and enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment