Skip to content

Commit

Permalink
specify requests explicitly for "guaranteed" case to make K8S tooling…
Browse files Browse the repository at this point in the history
… happy
  • Loading branch information
saikonen committed Dec 5, 2024
1 parent a0af234 commit 31b4725
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metaflow/plugins/kubernetes/kube_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def qos_requests_and_limits(qos: str, cpu: int, memory: int, storage: int):
"memory": "%sM" % str(memory),
"ephemeral-storage": "%sM" % str(storage),
}
# NOTE: Even though Kubernetes will produce matching requests for the specified limits, this happens late in the lifecycle.
# We specify them explicitly here to make some K8S tooling happy, in case they rely on .resources.requests being present at time of submitting the job.
qos_requests = qos_limits
else:
# Burstable - not Guaranteed, and has a memory/cpu limit or request
qos_requests = {
Expand Down

0 comments on commit 31b4725

Please sign in to comment.