Skip to content

Commit

Permalink
Added deployment name label to allow pod reverse relation
Browse files Browse the repository at this point in the history
  • Loading branch information
BitTheByte committed Sep 18, 2023
1 parent 0e24219 commit dcc3e3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dask_kubernetes/operator/controller/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,16 @@ def build_scheduler_service_spec(cluster_name, spec, annotations, labels):
def build_worker_deployment_spec(
worker_group_name, namespace, cluster_name, uuid, pod_spec, annotations, labels
):
worker_name = f"{worker_group_name}-worker-{uuid}"
labels.update(
**{
"dask.org/cluster-name": cluster_name,
"dask.org/workergroup-name": worker_group_name,
"dask.org/deployment-name": worker_name,
"dask.org/component": "worker",
"sidecar.istio.io/inject": "false",
}
)
worker_name = f"{worker_group_name}-worker-{uuid}"
metadata = {
"name": worker_name,
"labels": labels,
Expand Down

0 comments on commit dcc3e3b

Please sign in to comment.