How to modify Kubeflow source code before deploying it with Kubernetes?

11/17/2021

I encountered the same issue as in https://github.com/kubeflow/kubeflow/issues/6014 with my Kubeflow app. The fix is very simple (just a type casting), then I would like to fix it myself and redeploy Kubeflow.

The problem is that I am running a k3s cluster on my local machine where I have installed Kubeflow bundle via Juju. Then, I cannot change the source code.

How to modify Kubeflow source code before deploying it with Kubernetes? Should I use the manifest installation https://github.com/kubeflow/manifests#installation ? or a totally different method?

Thank you.

-- guibs35
kubeflow
kubernetes

2 Answers

11/24/2021

The bug was fixed in the last version of the manifests, then I have finally installed kubeflow directly from the manifests.

But still I am in touch with one Kubeflow developer, I will post here the right way to do modify/deploy if interested.

-- guibs35
Source: StackOverflow

11/17/2021

You got to check out their Github repo. Make changes and use kustomize to install like explained in their wiki. If you check the example folder you can see that it points to all other component folders.

https://github.com/kubeflow/manifests#install-with-a-single-command

One another hack could be, just look for the controllers in Kubernetes eg., deployments created for kubeflow, then modify them; works only if your changes are only related to Kubernetes resource definitions. I suggest going with the first option above for a clean development experience, and hey, that way can you contribute back to the kubeflow project as well, if you changes will benefit others.

-- Narain
Source: StackOverflow