Skip to content

Commit

Permalink
Don't allow the Cluster Autoscaler to evict Gretel job pods
Browse files Browse the repository at this point in the history
GitOrigin-RevId: ad32245ca5dc36e24efc9d67f251b85c0f688134
  • Loading branch information
misberner committed Jun 6, 2023
1 parent e9c980e commit d73bfb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gretel_client/agents/drivers/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ def _build_job(self, job_config: Job) -> client.V1Job:
metadata=client.V1ObjectMeta(
labels={"app": "gretel-jobs-worker"},
namespace=self._gretel_worker_namespace,
annotations={"cluster-autoscaler.kubernetes.io/safe-to-evict": "false"},
),
spec=client.V1PodSpec(
restart_policy="Never",
Expand Down

0 comments on commit d73bfb6

Please sign in to comment.