Skip to content

Instantly share code, notes, and snippets.

@gambol99
Last active October 5, 2018 10:08
Show Gist options
  • Save gambol99/1780e11ae6d2b44311e68d8c087d3de0 to your computer and use it in GitHub Desktop.
Save gambol99/1780e11ae6d2b44311e68d8c087d3de0 to your computer and use it in GitHub Desktop.
# KOPS Cluster Spec
# enable the node authorization service
nodeAuthorization:
nodeAuthorizer: {}
# technically only the above is required as everything else gets defaulted.
# But given how kops works if you specify the sections below, the defaults
# don't get carried through, thus you need to apply these below.
# enable bootstrap token on the kube-apiserver
kubeAPIServer:
enableBootstrapTokenAuth: true
enableAdmissionPlugins:
- Initializers
- NodeRestriction # <-- this is the one you want
- MutatingAdmissionWebhook
- NamespaceLifecycle
- LimitRanger
- ServiceAccount
- PersistentVolumeLabel
- DefaultStorageClass
- ResourceQuota
- DefaultTolerationSeconds
- ValidatingAdmissionWebhook
# enable the tokencleaner controller on the kube-controller-manager.
# this is used to clean up expired bootstrap token
# PLEASE NOTE - as for writing this (02/10/18) the `controllers` flag only exists on
# the master branch and hasn't been cut into a release yet.
kubeControllerManager:
controllers:
- "*"
- tokencleaner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment