bundle-kubeflow icon indicating copy to clipboard operation
bundle-kubeflow copied to clipboard

How to run pipeline from the cluster's outside

Open yesid-lopez opened this issue 1 year ago • 2 comments

Hello, I did the setup of charmed kubeflow and it has worked pretty good so far, now I want to be able to build my own pipeline from the outside of the cluster but when I try to run the following code it does not work:

kfp_client = Client(host="http://10.64.140.43.nip.io")
kfp_client.list_experiments()

It lists empty experiments:

{'experiments': None, 'next_page_token': None, 'total_size': None}

When I run it from inside the notebook of kubeflow it works without the host argument.

kfp_client = Client()
kfp_client.list_experiments()

lists all the experiments

{'experiments': [{'created_at': datetime.datetime(2023, 5, 2, 8, 50, 23, tzinfo=tzlocal()),
                  'description': None,
                  'id': '2631a743-86f2-416b-8e86-22c24990df6b',
                  'name': 'demo-experiment',
                  'resource_references': [{'key': {'id': '35up',
                                                   'type': 'NAMESPACE'},
                                           'name': None,
                                           'relationship': 'OWNER'}],

yesid-lopez avatar May 02 '23 12:05 yesid-lopez