Skip to content

Commit

Permalink
Request some ephemeral-storage to avoid evictions
Browse files Browse the repository at this point in the history
When a node is under disk pressure and wants to evict some pods, the
first rule is for pods that use more resources than requested
(https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#pod-selection-for-kubelet-eviction)

Requesting a bit here will prevent eviction of this pod, which is very
unlikely to use much anyway.
  • Loading branch information
hectorhuertas committed Aug 17, 2023
1 parent a760706 commit 0388c6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions manifests/base/namespaced/tf-applier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ spec:
limits:
cpu: 2000m
memory: 2Gi
ephemeral-storage: 256Mi
requests:
cpu: 0m
memory: 128Mi
ephemeral-storage: 32Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down

0 comments on commit 0388c6d

Please sign in to comment.