DKE/Kubernetes
[Kubeflow] 계정(User) 추가하기 / 2023.06.14
강원대목동녀
2023. 6. 14. 21:13
Step 1. Profile 생성
먼저, profile yaml 파일을 작성한 후 kubectl apply -f 명령어로 생성하기
apiVersion: kubeflow.org/v1beta1
kind: Profile
metadata:
name: test # namespace
spec:
owner:
kind: User
name: sykang@email.com
resourceQuotaSpec:
hard:
cpu: "6"
memory: "16Gi"
requests.nvidia.com/gpu: "1"
persistentvolumeclaims: "10"
requests.storage: "100Gi"
profile 확인
kubectl get profile -A
Step 2. configmap 수정
kubeflow를 설치할 때 사용했던 manifests 폴더의 config-map.yaml 수정하기
config-map.yaml파일의 staticPasswords 아래를 복사해서 user 추가하기
Step 3. dex 다시 설치
# dex 삭제
kubectl delete pod dex -n auth
# 다시 설치
kustomize build common/dex/overlays/istio | kubectl apply -f -
Kubeflow Dashboard로 접속 성공!