question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

K8sContainerContext is missing tolerations, nodeSelector, and podSecurityContext

See original GitHub issue

Dagster version

1.0.11

What’s the issue?

When a run job/pod is created, it doesn’t include all the config of the user repo deployment, even if includeConfigInLaunchedRuns.enabled is true. It is missing tolerations, nodeSelector, and podSecurityContext.

What did you expect to happen?

I expected all the config specified in the elements of the deployments list to be copied to the run jobs/pods, if includeconfigInLaunchedRuns.enabled is true.

We’d need to add those missing properties here: https://github.com/dagster-io/dagster/blob/f5ea4b7d861d4966166b54bc575b7a3ebbfe7851/python_modules/libraries/dagster-k8s/dagster_k8s/container_context.py#L24

and here: https://github.com/dagster-io/dagster/blob/4754109a27fd0aedb107e4101818d8e4c174d492/helm/dagster/charts/dagster-user-deployments/templates/helpers/_helpers.tpl#L97

How to reproduce?

No response

Deployment type

Dagster Helm chart

Deployment details

No response

Additional information

No response

Message from the maintainers

Impacted by this issue? Give it a 👍! We factor engagement into prioritization.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paralyzahcommented, Oct 13, 2022

Probably, I think, isn’t enough. If you decided to dig into it - I think you need add a container security contexts accordingly to docs: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.22/#securitycontext-v1-core There is some options who available only on container security context level, e.g. allowPrivilegeEscalation

1reaction
johannkmcommented, Oct 7, 2022

Hi @craustin, yeah those should be added. Feel free to pr, otherwise we can take it

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found