-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Cannot create volumes or pods under a specific namespace when creating pipeline with create_run_from_pipeline_package #4746
Comments
The SDK doesn't create namespace by any means. The Here's the user guide for multi-user isolation: https://www.kubeflow.org/docs/pipelines/multi-user/ /cc @Bobgy |
I understand that. The namespace exists and the Notebook I am executing these commands from was launched into that namespace via Kubeflow Notebooks. I can manually create these resources from the notebook using Kubeflow. The problem is I cannot get pipelines to use anything but the kubeflow namespace. |
@supertetelman I tried your steps today but couldn't repro.
Did you pass those argument in your real code? Besides, I wonder if you deployment has multi-user mode enabled. Can you please check the value in config map.
|
@chensun one clarification the client id settings are GCP specific. Agree with everything else! |
No, I did not include those parameters. The full notebook can be found here, but the code snippet I provided is reproducing things for me (https://github.com/supertetelman/deepops/blob/kubeflow-mpi/workloads/examples/k8s/kubeflow-mpi/multinode-pipeline.ipynb). I don't see a configmap for
This is all being run on-prem and I deployed with manifest: https://raw.githubusercontent.com/kubeflow/manifests/master/kfdef/kfctl_k8s_istio.yaml |
Thanks, @Bobgy. I think we never tested multi-user without Cloud IAP then. It probably won't work by design. @supertetelman
This file references manifest from master: https://github.com/kubeflow/manifests/archive/master.tar.gz @Bobgy looks like we never merged the multi-user manifest to master, right? Do you think it's still worth trying multiuser without Cloud IAP setup? Not sure what could be the counterpart for on-prem. |
Ahh, well I tried updating my configmap with
|
This error makes sense now. I think it's sort of expected given there's no Cloud IAP configuration. Our currently implementation of multi-user probably doesn't support on-prem. @Bobgy WDYT? |
@supertetelman Here's our doc on multi-user instructions for GCP. If you're interested in seeing if you can make it work for on-prem. (You'll need to join to https://groups.google.com/g/kubeflow-discuss group to get access to the doc.) |
Okay thanks. I had looked at this previously and it seemed like more work than I wanted. But it seems with the v1.2 release, the Multiuser mode is built in and the ability I previously had to launch pipelines from a notebook now require auth that was previously unnecessary. I will take a look at this and report back. |
I was never able to get past this problem. It looks like my issue is now being addressed by #5138. I'm closing this issue for now and will track the new featureset. |
What steps did you take:
I am trying to create volumes and Pods under a specific namespace using
create_run_from_pipeline_package(namespace=...)
. However everything is being created underkubeflow
.What happened:
I am running the below code snippet in a Jupyter Notebook running under the
anonymous
namespace. When I submit the pipeline the PVCs and Pods are all started in thekubeflow
namespace. As far as I can tell passingnamespace
to the create_run_from_pipeline_package() call should restrict all resource creation to that namespace.This is causing me problems because I am trying to get the
logs
from some subsequent pods usingkubectl
andkubectl
can only access pods in the anonymous namespace.Am I doing something wrong with my call or is this an issue of some sort?
What did you expect to happen:
I expected the
pvc
s and all the Pods in the pipeline to be created in the anonymous namespace.Here is the python snippet that reproduces this:
kfp.version == 1.1.0
Kubeflow is kftcl 1.1.0 deployed with the master istio yaml file.
/kind bug
/area backend
/area sdk
The text was updated successfully, but these errors were encountered: