flopach / digits-recognizer-kubeflow

Sample MLOps Workflow: Recognizing Digits with Kubeflow
MIT License
143 stars 95 forks source link

Getting the minio IP address dynamically? #5

Closed roger-yu-ds closed 1 year ago

roger-yu-ds commented 1 year ago

The digits_recognizer_notebook.ipynb has the IP address hardcoded as 100.65.11.110. Is there a way to get this automatically?

I ended up having to do this externally

minio_name=$(kubectl -n kubeflow get pods -o name | grep minio | cut -d "/" -f 2)
kubectl -n kubeflow describe pod $minio_name | grep IP: -m 1 | tr -s " " | cut -d " " -f2

and copying and pasting the value into the notebook.

Running kubectl in the notebook is not allowed

Error from server (Forbidden): pods is forbidden: User "system:serviceaccount:kubeflow-user-example-com:default-editor" cannot list resource "pods" in API group "" in the namespace "kubeflow"

What's the best practice here?

roger-yu-ds commented 1 year ago

Actually, just use minio-service.kubeflow.