Skip to content
This repository was archived by the owner on Oct 7, 2021. It is now read-only.

Commit 8c6c5f9

Browse files
authored
Update admission controllers for k8s 1.14 and document them (#47)
1 parent 5eea977 commit 8c6c5f9

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

templates/kops/kops-private-topology.yaml.gotmpl

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ spec:
4646
{{- end }}
4747
{{- if bool (getenv "KOPS_ADMISSION_CONTROL_ENABLED" "true") }}
4848
admissionControl:
49+
# Below are the officially recommended admission controllers for k8s 1.10-1.12
4950
- NamespaceLifecycle
5051
- LimitRanger
5152
- ServiceAccount
@@ -54,10 +55,27 @@ spec:
5455
- MutatingAdmissionWebhook
5556
- ValidatingAdmissionWebhook
5657
- ResourceQuota
57-
- NodeRestriction
58+
# Starting with k8s 1.13, Priority is also recommended
5859
- Priority
59-
- Initializers
60+
# Starting wtih 1.14, these additional controllers are recommended
61+
- TaintNodesByCondition
62+
- PersistentVolumeClaimResize
63+
64+
# These controllers are optional security enhancements
65+
# NodeRestriction works with Node and RBAC authorizers to limit what kubelet can modify
66+
# See https://kubernetes.io/docs/tasks/administer-cluster/securing-a-cluster/#api-authorization
67+
- NodeRestriction
68+
# DenyEscalatingExec: deny exec and attach commands to pods that run with escalated privileges that allow host access.
6069
- DenyEscalatingExec
70+
71+
# These are just optional
72+
# DefaultTolerationSeconds sets the default forgiveness toleration for pods to tolerate
73+
# the taints notready:NoExecute and unreachable:NoExecute to 5 minutes
74+
- DefaultTolerationSeconds
75+
76+
# The Initializers controller was an alpha feature of k8s 1.12 and 1.13 that did not pan out.
77+
# Removed in Kubernetes 1.14 https://github.com/kubernetes/kubernetes/pull/72972
78+
# - Initializers
6179
{{- end }}
6280
{{- if getenv "KOPS_OIDC_ISSUER_URL" }}
6381
oidcClientID: "{{ getenv "KOPS_OIDC_CLIENT_ID" "kubernetes"}}"

0 commit comments

Comments
 (0)