You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importkfp# the namespace in which you deployed Kubeflow Pipelinesnamespace="kubeflow"# the KF_PIPELINES_SA_TOKEN_PATH environment variable is used when no `path` is set# the default KF_PIPELINES_SA_TOKEN_PATH is /var/run/secrets/kubeflow/pipelines/tokencredentials=kfp.auth.ServiceAccountTokenVolumeCredentials(path=None)
client=kfp.Client(host=f"http://ml-pipeline-ui.{namespace}", credentials=credentials)
print(client.list_experiments())
What I got to work was the following:
importkfp# the namespace in which you deployed Kubeflow Pipelinesnamespace="kubeflow"# the KF_PIPELINES_SA_TOKEN_PATH environment variable is used when no `path` is set# the default KF_PIPELINES_SA_TOKEN_PATH is /var/run/secrets/kubeflow/pipelines/tokencredentials=kfp.auth.ServiceAccountTokenVolumeCredentials(path=None)
client=kfp.Client(host=f"http://ml-pipeline.{namespace}:8888", credentials=credentials)
print(client.list_experiments())
I am not certain whether the documentation is wrong or we just have a weird installation. If someone can confirm that the documentation is indeed misleading, then I am happy to contribute a fix.
The text was updated successfully, but these errors were encountered:
ianonavy
changed the title
Connect the Pipelines SDK to Kubeflow Pipelines
Incorrect hostname for Pipeline SDK
Nov 23, 2022
When following Connect the Pipelines SDK to Kubeflow Pipelines on Kubeflow 1.6.1 in the subsection Full kubeflow (from inside cluster), I discovered the hard way that Kubernetes RBAC authorization is fulfilled at the API service, and not the UI service. I believe this documentation may be wrong:
What I got to work was the following:
I am not certain whether the documentation is wrong or we just have a weird installation. If someone can confirm that the documentation is indeed misleading, then I am happy to contribute a fix.
The text was updated successfully, but these errors were encountered: