提交 Kubernetes 资源
从 Notebook 提交 Kubernetes 资源
Notebook Pod ServiceAccount
Kubeflow 将 `default-editor` Kubernetes ServiceAccount 分配给 Notebook Pod。Kubernetes `default-editor` ServiceAccount 绑定到 `kubeflow-edit` ClusterRole,该角色对许多 Kubernetes 资源具有命名空间范围的权限。
您可以使用以下命令获取 `ClusterRole/kubeflow-edit` 的完整 RBAC 列表
kubectl describe clusterrole kubeflow-edit
Notebook Pod 中的 Kubectl
由于每个 Notebook Pod 都绑定了高权限的 `default-editor` Kubernetes ServiceAccount,因此您可以在其中运行 `kubectl` 而无需提供额外的认证。
例如,以下命令将创建在 `test.yaml` 中定义的资源
kubectl create -f "test.yaml" --namespace "MY_PROFILE_NAMESPACE"
下一步
上次修改时间 2021年11月19日:更新 `Kubeflow Notebooks` 文档 (#3003) (5ad6019)