This repository was archived by the owner on Oct 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 46
46
{{- end }}
47
47
{{- if bool (getenv "KOPS_ADMISSION_CONTROL_ENABLED" "true") }}
48
48
admissionControl:
49
+ # Below are the officially recommended admission controllers for k8s 1.10-1.12
49
50
- NamespaceLifecycle
50
51
- LimitRanger
51
52
- ServiceAccount
@@ -54,10 +55,27 @@ spec:
54
55
- MutatingAdmissionWebhook
55
56
- ValidatingAdmissionWebhook
56
57
- ResourceQuota
57
- - NodeRestriction
58
+ # Starting with k8s 1.13, Priority is also recommended
58
59
- 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.
60
69
- 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
61
79
{{- end }}
62
80
{{- if getenv "KOPS_OIDC_ISSUER_URL" }}
63
81
oidcClientID: "{{ getenv "KOPS_OIDC_CLIENT_ID" "kubernetes"}}"
You can’t perform that action at this time.
0 commit comments