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.

[Question] How to setup a runtime configuration?

See original GitHub issue

Could not find any specific doc on what value to put under Kubeflow Pipelines API Endpoint when defining a Runtime Configuration.

So far I have kubeflow running on eks (aws).

What I’m trying to accomplish is a simple elyra’s pipeline executed on kubeflow pipelines.

However I cannot figure out what value to put on Kubeflow Pipelines API Endpoint.

image

Further info

  • Elyra’s image used for jupyter server configuration: elyra/kf-notebook:3.9.0

What i’ve tried so far

Getting the ip of ml-pipeline-ui service in k8s and setting Kubeflow Pipelines API Endpoint with it.

image

Sorry if I missed some obvious steps…

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
augustovictorcommented, Oct 18, 2022

@ptitzler I got part of it to work

First Applied PodDefault; Then criated a new jupyterlab server and selected Allow access to kubeflow pipelines in the Configurations section. When it started I created a pipeline runtime config with the following values: image

Then got this message: image

The logs in my notebook pod (k -n kubeflow-user-example-com logs victor-elyra-0 -f) says:

ERROR:root:Failed to get healthz info attempt 5 of 5.
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/site-packages/kfp/_client.py", line 411, in get_kfp_healthz
    response = self._healthz_api.get_healthz()
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/api/healthz_service_api.py", line 63, in get_healthz
    return self.get_healthz_with_http_info(**kwargs)  # noqa: E501
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/api/healthz_service_api.py", line 134, in get_healthz_with_http_info
    return self.api_client.call_api(
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py", line 364, in call_api
    return self.__call_api(resource_path, method,
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py", line 188, in __call_api
    raise e
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py", line 181, in __call_api
    response_data = self.request(
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/api_client.py", line 389, in request
    return self.rest_client.GET(url,
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/rest.py", line 230, in GET
    return self.request("GET", url,
  File "/opt/conda/lib/python3.8/site-packages/kfp_server_api/rest.py", line 224, in request
    raise ApiException(http_resp=r)
kfp_server_api.exceptions.ApiException: (403)
Reason: Forbidden
HTTP response headers: HTTPHeaderDict({'content-length': '19', 'content-type': 'text/plain', 'date': 'Tue, 18 Oct 2022 11:09:29 GMT', 'server': 'envoy', 'x-envoy-upstream-service-time': '1'})
HTTP response body: RBAC: access denied

Then i tried adding a roleBinding between the ServiceAccount default-editor under my user’s namespace, and ml-pipeline-ui (as described here)

---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: allow-namespace-2-kubeflow-edit
  ## this RoleBinding is in `namespace-1`, because it grants access to `namespace-1`
  namespace: kubeflow
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: kubeflow-edit
subjects:
  - kind: ServiceAccount
    name: default-editor
    ## the ServiceAccount lives in `namespace-2`
    namespace: kubeflow-user-example-com

However the error still persists. What am I missing?

Thanks

0reactions
ptitzlercommented, Oct 18, 2022

@thesuperzapper do you have any insights to share that might help in this case? I don’t think this is an Elyra specific configuration issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing runtime configuration
2 Edit the Runtime configuration file ... In the upper-right corner of the Settings landing page, click Edit to display the Configuration File...
Read more >
Runtime configuration files are removed when installing VS ...
Note) 14.29.20037.0 redistribution package works normally. Reproduce +) Run vcredist_x64 /install with the redistributable packager installed +) ...
Read more >
Runtime configuration for create-react-app
This process is static as everytime the .env variables change, the project has to be built again. Is there a way to inject...
Read more >
First time .NET Runtime configuration problems
So here's my first question: in my remote Portal system (devportal.crd.bc.ca) under the .NET Runtime Service configuration the .
Read more >
Import a runtime configuration file - PLCS.net
1. Create a new configuration · 2. Import a runtime configuration file · 3. Copy the configuration that is currently running on this...
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