Skip to content

Instantly share code, notes, and snippets.

@nijave
Created June 1, 2023 15:32
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 nijave/7db294e992b0dd7709f4824b13917062 to your computer and use it in GitHub Desktop.
Save nijave/7db294e992b0dd7709f4824b13917062 to your computer and use it in GitHub Desktop.
Docker Desktop Kuberentes Auto Provision Namespace
docker run --rm --privileged --pid=host ubuntu:22.04 \
nsenter -t 1 -m -u -n -i \
sh -c "sed -i '/enable-admission-plugins/{/NamespaceAutoProvision/b; s/$/,NamespaceAutoProvision/}' /etc/kubernetes/manifests/kube-apiserver.yaml"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment