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.

Pod overrides not working

See original GitHub issue

Apache Airflow version: 2.0.1 Kubernetes version (if you are using kubernetes) (use kubectl version): 1.17 Environment:

  • Cloud provider or hardware configuration: GKE, some CPU some GPU nodes

What happened: Hey I’m having some issues using the executor_config in the python operator when running with kubernetes_executor, i have tried both the option of using the pod_template_file (to point out a specific file) and the pod_override option to do some changes to the pod spec among others set specific resource limits and request (a requirment in our namespace) however when I deploy it and start the task I get an error in the scheduler that I cannot create the worker since I have not specified the resource limits and requests. This new pod spec contained resources (and other necessary changes e.g. node selectors) for finding a node with GPU and allocation a GPU. I could see that when the scheduler scheduled the worker it used the correct gpu pod_template_file. One thing I did to debug was to use the pod_template_file with the GPU spec as the default pod template (by setting it in the airflow.cfg). This works which means that there is no issue with the pod_template_file. What you expected to happen: It seems like the pod overrides are not applied correctly How to reproduce it: Use pod_template_file or pod_override in a cluster of namespace that requires certain resource limits.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
CatarinaSilvacommented, May 21, 2021

hey @kaxil I can confirm the requests and limits are working with the new way in 2.0.2

1reaction
CatarinaSilvacommented, May 21, 2021

Thanks @kaxil currently testing with the new format, will let you know if it works

Read more comments on GitHub >

github_iconTop Results From Across the Web

Airflow 2.0.1: Pod Template Override not working as expected ...
I had a similar issue. The problem was that we changed our airflow containers and upgraded the Kubernetes library in the new containers....
Read more >
Troubleshooting - CocoaPods Guides
If something doesn't seem to work, first of all ensure that you are not completely overriding any options set from the Pods.xcconfig file...
Read more >
Tempo: Global overrides do not work · Issue #1077 - GitHub
Steps to recreate. Create a deployment of Tempo, with overrides set: apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata ...
Read more >
Why after pod install throw that e… | Apple Developer Forums
I was use pod install for my project and it throw error like below. "[!] The MyApp [Debug] target overrides the FRAMEWORK_SEARCH_PATHS build...
Read more >
Configure a Security Context for a Pod or Container
Running as privileged or unprivileged. Linux Capabilities: Give a process some privileges, but not all the privileges of the root user.
Read more >

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