Implement ttl controller

This commit is contained in:
Wojciech Tyczynski
2017-01-30 11:48:15 +01:00
parent 46becf2c81
commit 3aebc4c003
9 changed files with 614 additions and 0 deletions

View File

@@ -466,6 +466,11 @@ const (
// is at-your-own-risk. Pods that attempt to set an unsafe sysctl that is not enabled for a kubelet
// will fail to launch.
UnsafeSysctlsPodAnnotationKey string = "security.alpha.kubernetes.io/unsafe-sysctls"
// ObjectTTLAnnotations represents a suggestion for kubelet for how long it can cache
// an object (e.g. secret, config map) before fetching it again from apiserver.
// This annotation can be attached to node.
ObjectTTLAnnotationKey string = "node.alpha.kubernetes.io/ttl"
)
// TolerationToleratesTaint checks if the toleration tolerates the taint.