Skip to content

Commit

Permalink
Disable disk based evictions for Kubernetes 1.19
Browse files Browse the repository at this point in the history
  • Loading branch information
Ciprian Hacman committed Jun 8, 2020
1 parent f34a13a commit 87ad779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/model/components/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (b *KubeletOptionsBuilder) BuildOptions(o interface{}) error {
// Disk based evictions are not detecting the correct disk capacity in Kubernetes 1.19 and are
// blocking scheduling by tainting worker nodes with "node.kubernetes.io/disk-pressure:NoSchedule"
// TODO: Re-enable once the Kubelet issue is fixed
if b.Context.IsKubernetesGTE("1.19") {
if b.Context.IsKubernetesLT("1.19") {
// Disk based eviction (evict old images)
// We don't need to specify both, but it seems harmless / safer
evictionHard = append(evictionHard, "nodefs.available<10%")
Expand Down

0 comments on commit 87ad779

Please sign in to comment.