Skip to content

Commit

Permalink
reintroducing the service labels that were removed earlier by mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianScherer88 committed Oct 29, 2024
1 parent fe1c262 commit 2fd1a5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sdk/bettmensch_ai/components/torch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ def create_torch_ddp_service_template(
manifest=f"""apiVersion: v1
kind: Service
metadata:
name: {component_task_name}-{{{{workflow.name}}}}
name: {component_task_name}-{{{{workflow.uid}}}}
namespace: {namespace}
labels:
workflows.argoproj.io/workflow: {{{{workflow.name}}}}
torch-job: {component_task_name}
spec:
clusterIP: None # ClusterIP set to None for headless service.
ports:
Expand Down

0 comments on commit 2fd1a5e

Please sign in to comment.