-
Notifications
You must be signed in to change notification settings - Fork 672
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
[BUG] Namespace creation fails with default pod template #5376
Comments
Thank you for opening your first issue here! 🛠 |
The issue you're experiencing seems related to the configuration and namespace handling of PodTemplates in Flyte. According to this discussion, PodTemplates need to be present in the namespace where the execution is triggered. Additionally, another discussion mentions that PodTemplates are namespace-specific and should be configured accordingly. Lastly, this issue highlights that the Would you like more details on how to configure the namespaces and PodTemplates correctly? Sources:
This is an AI-generated response and your feedback is appreciated! Please leave a 👍 if this is helpful and 👎 if it is not. Mention @RunLLM to ask follow-up questions. See runllm.com for more! |
@nuhaj what version of Flyte are you using? |
flyte-binary-release:v1.12.0 |
Yes, this looks like it. |
Any updates here? In a similar issue we can not use clusterResourceTemplate to define namespace for flyte-binary |
@nuhaj I'll work on reproducing this behavior, but I'm curious, what's the content of your |
I posted a trimmed version above that I tested just to see if the error would resolve, I expect it to ignore the container since name: noob and its expecting name to be default or primary. Below is the default pod for all namespaces that I initially planned to set. The intent was a default pod with persistent volume claim. The definition below works when defined in the task decorator as a compile-time pod template but not as a default pod
|
Thanks for sharing. |
Yes they are separate issues, I was attempting to create a default podtemplate with pvc and separately also override the default namespace of {{project}}-{{domain}}. For this open report we can focus on the default podtemplate resource. |
@nuhaj regarding the PodTemplate behavior I just had success using the flyte-binary v1.12.0 with the following config: In the Helm values:
The PodTemplate:
And running a simple workflow:
I get the following Pod spec: Resulting Pod spec
Notice here that I used In regards to the namespace issue which I wasn't able to reproduce: without even using anything in the
The cluster resources controller creates the namespaces:
Let me know if you have additional questions. |
@davidmirror-ops for the namespace we are over riding the default namespace {{ project }}-{{ domain }} in cluster resource template. Instead of projectx-development we would get say flyte-projectx-development |
Maybe that would work but I don't think it's a very maintainable workaround. So, is If this is an existing namespace, you can instruct Flyte to run your executions on a particular namespace:
You can create new projects using |
@nuhaj is this still an issue in your environment? |
@davidmirror-ops I was away. Trying this now. Did you also have a section inside clusterResourceTemplates.inline? clusterResourceTemplates = {
|
@nuhaj No, I wasn't setting anything under that section |
@davidmirror-ops The
How does the helm chart know where "flyte-workflow-base" is ? defined the way you have it there is not context on path
|
You mean an init container as part of the flyte-binary pod or the execution one?
The logic is not applied by the Helm chart. This field ends up on a configmap that then propeller picks up. When you define this global Pod template as part of the K8s plugin config, propeller starts a watch looking first for that template in the namespace where the task is being executed, otherwise, it looks up on the flyte namespace (see docs) |
@davidmirror-ops we managed to get the default pod template working by
Thank you for your help, the pod description and template set us in the right direction to debug |
@nuhaj great, hopefully, we'll improve the PodTemplates docs soon to cover some of the gaps. Any other questions please let us know. Thanks! |
Describe the bug
when configuring a basic default pod template the name spaces are not created. Projects are created without error but there are no traces of the namespace for the project. When deploying a workflow the propeller error is
failed to create workflow in propeller namespaces "test-development" not found…
Removing the default pod, the namespaces are created
Expected behavior
I expect the namespaces to be created or an error when creation failed. I expect the default pod template to be used as either primary, default containers or ignored.
Additional context to reproduce
Trimming down the default template to the most basic skeleton for testing. test_template.yaml
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: