[개발] 문서 번역/Kubeflow
[Kubeflow Notebooks] Submit Kubernetes Resources
하하미아
2022. 12. 20. 06:07
노트북에서의 쿠버네티스 리소스 제출
Notebook Pod ServiceAccount
Kubeflow는 default-editor
라는 쿠버네티스 ServiceAccount를 노트북 Pods에 할당합니다. 해당 쿠버네티스 default-editor
ServiceAccount는 kubeflow-edit
ClusterRole에 바운드 되어 있습니다.이 ClusterRole은 많은 쿠버네티스 자원에 권한이 있는 네임스페이스 스코프를 가지고 있습니다.
당신은 ClusterRole/kubeflow-edit
을 위한 RBAC의 모든 리스트를 아래와 같이 조회할 수 있습니다.
$ kubectl describe clusterrole kubeflow-edit
Kubectl in Notebook Pod
모든 노트북 pod는 높은 권한의 default-editor
쿠버네티스 ServiceAccount가 바운드되어 있기 때문에 당신은 추가적인 권한 할당 없이도 kubectl
을 사용할 수 있습니다.
예를 들어, 아래와 같은 명령은 test.yaml에 정의된 리소스를 생성할 것입니다.
$ kubectl create -f "test.yaml" --namespace "MY_PROFILE_NAMESPACE"