Skip to content
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

Kubeflow charms are still requesting PVC for each charm #425

Closed
jameinel opened this issue Feb 4, 2022 · 6 comments · Fixed by canonical/envoy-operator#11
Closed

Kubeflow charms are still requesting PVC for each charm #425

jameinel opened this issue Feb 4, 2022 · 6 comments · Fixed by canonical/envoy-operator#11
Labels
enhancement New feature or request

Comments

@jameinel
Copy link
Member

jameinel commented Feb 4, 2022

See original bug report here:
https://bugs.launchpad.net/juju/+bug/1959886

Since juju 2.8, charms can set 'min-juju-version: 2.8' for metadata v1 charms, or just be metadata v2 charms. With either of those things set, they can use state-set and state-get to set key-value pairs in the Juju controller, rather than relying on the local disk to be persistent. (Operator Framework should already be updated to use state-set/get when it is available rather than the local disk.)

I don't know if the kubeflow charms even need persistent state, but they do need to be updated to indicate that they don't.

The issue for field is that without those settings, it means that each application in kubeflow ends up consuming another PVC, and you can't just deploy kubeflow to a large instance (because you run out of available mount points).

@ca-scribner
Copy link
Contributor

Thanks @jameinel, this is really helpful. There's a few things we misunderstood here that are much clearer now. Almost (maybe all) of our charms have no need for stored state, and definitely not stored state that is outside the controller, so we can address this.

Am I understanding correctly then that if we do either of min-juju-version: 2.8 or make metadata v2, by default juju will not create a pvc for stored state and instead write to the controller? Or is there an extra option we need to use to avoid the new PVC being created?

@jameinel
Copy link
Member Author

jameinel commented Feb 4, 2022 via email

@phvalguima
Copy link

Hi, I've done some tests and using: min-juju-version: '2.9.0' indeed resolve this issue.

@VariableDeclared
Copy link

First set of changes: canonical/kfp-operators#60

@VariableDeclared
Copy link

Added remaining changes. Although there is an issue with istio metadata which I am trying to understand. PRs below:

Kubeflow dashboard: canonical/kubeflow-dashboard-operator#25
Kubeflow profiles: canonical/kubeflow-profiles-operator#26
Tensorboard PR: canonical/kubeflow-tensorboards-operator#10
katib PR: kubeflow/katib#1804
jupyter PR: canonical/notebook-operators#27
Argo Operators: canonical/argo-operators#24

@VariableDeclared
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
4 participants