You are viewing documentation for Kubeflow 1.7

This is a static snapshot from the time of the Kubeflow 1.7 release.
For up-to-date information, see the latest version.

Submit Kubernetes Resources

Submitting Kubernetes resources from a Notebook

Notebook Pod ServiceAccount

Kubeflow assigns the default-editor Kubernetes ServiceAccount to the Notebook Pods. The Kubernetes default-editor ServiceAccount is bound to the kubeflow-edit ClusterRole, which has namespace-scoped permissions to many Kubernetes resources.

You can get the full list of RBAC for ClusterRole/kubeflow-edit using:

kubectl describe clusterrole kubeflow-edit

Kubectl in Notebook Pod

Because every Notebook Pod has the highly-privileged default-editor Kubernetes ServiceAccount bound to it, you can run kubectl inside it without providing additional authentication.

For example, the following command will create the resources defined in test.yaml:

kubectl create -f "test.yaml" --namespace "MY_PROFILE_NAMESPACE"

Next steps

Feedback

Was this page helpful?


Last modified November 19, 2021: update `Kubeflow Notebooks` docs (#3003) (5ad6019)