Add EmptyDir Volume and local storage for container overlay Isolation

This PR adds two features:
1. add support for isolating the emptyDir volume use. If user
sets a size limit for emptyDir volume, kubelet's eviction manager
monitors its usage
and evict the pod if the usage exceeds the limit.
2. add support for isolating the local storage for container overlay. If
the container's overly usage exceeds the limit defined in container
spec, eviction manager will evict the pod.

Kubernetes-commit: 0b13aee0c0f9bd06eb323ea249db29547b66bc46
This commit is contained in:
Jing Xu 2017-05-30 13:54:15 -07:00 committed by Kubernetes Publisher
parent 25e58688a7
commit 1f501c6ac0
2 changed files with 14 additions and 0 deletions

View File

@ -53,3 +53,10 @@ func (self *ResourceList) NvidiaGPU() *resource.Quantity {
} }
return &resource.Quantity{} return &resource.Quantity{}
} }
func (self *ResourceList) StorageOverlay() *resource.Quantity {
if val, ok := (*self)[ResourceStorageOverlay]; ok {
return &val
}
return &resource.Quantity{}
}

View File

@ -54,3 +54,10 @@ func (self *ResourceList) NvidiaGPU() *resource.Quantity {
} }
return &resource.Quantity{} return &resource.Quantity{}
} }
func (self *ResourceList) StorageOverlay() *resource.Quantity {
if val, ok := (*self)[ResourceStorageOverlay]; ok {
return &val
}
return &resource.Quantity{}
}