Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

supply labels to k8s workflow runner #165

Open
johnbradley opened this issue Mar 7, 2019 · 0 comments
Open

supply labels to k8s workflow runner #165

johnbradley opened this issue Mar 7, 2019 · 0 comments

Comments

@johnbradley
Copy link
Collaborator

johnbradley commented Mar 7, 2019

Calrissian now has support for supply labels: Duke-GCB/calrissian#48
This can be done by adding --pod-labels <yaml_file> to the calrissian command line.
The <yaml_file> can be YAML or JSON dictionary of labels to be applied to pods created by calrissian.
This would help with debugging and cleanup.

Code where we build arguments to clarissian:

command_parts.extend(["--tmp-outdir-prefix", Paths.TMPOUT_DATA + "/",
"--outdir", Paths.OUTPUT_RESULTS_DIR + "/",
"--max-ram", self.job.job_flavor_memory,
"--max-cores", str(self.job.job_flavor_cpus)
])

Code where we pass labels to k8s for the job that runs calrissian:

labels = self.make_job_labels(JobStepTypes.RUN_WORKFLOW)

@johnbradley johnbradley modified the milestone: bespin-k8s Mar 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant