Skip to content

Commit

Permalink
feat(kops): add admission control to kube api server (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebabai authored Sep 24, 2018
1 parent c1e9476 commit 24847fb
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rootfs/templates/kops/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,20 @@ spec:
authenticationTokenWebhookConfigFile: /srv/kubernetes/aws-iam-authenticator/kubeconfig.yaml
{{- end }}
{{- end }}
{{- if bool (getenv "KOPS_ADMISSION_CONTROL_ENABLED" "true") }}
admissionControl:
- NamespaceLifecycle
- LimitRanger
- ServiceAccount
- PersistentVolumeLabel
- DefaultStorageClass
- DefaultTolerationSeconds
- MutatingAdmissionWebhook
- ValidatingAdmissionWebhook
- ResourceQuota
- NodeRestriction
- Priority
{{- end }}
authorization:
{{- if bool (getenv "KOPS_AUTHORIZATION_RBAC_ENABLED" "false") }}
rbac: {}
Expand Down

0 comments on commit 24847fb

Please sign in to comment.