'데이터 엔지니어'로 성장하기

정리하는 걸 좋아하고, 남이 읽으면 더 좋아함

Data/Jupyterhub

Jupyterhub) k8s 1.27에서 helm 에러 수정_bug

MightyTedKim 2023. 6. 11. 13:31
728x90
반응형

쿠버 버전을 업그레이드했다가, 에러가 발생했어요.

공식 github에서도 2일전에 bug라는 issue가 등록되었더라고요

https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues?q=leases

 

요약

1. k8s 1.27에서 pod spawning이 안됨

2. 공식 인정 버그였음

3. image를 변경하고, deprecated된 api를 수정함


환경

- helm chart 3.0.0

- k8s v1.27.0 (기존에는 1.24)

 

에러

v1beta1.CSIStorageCapacity 관련 에러

- Failed to watch *v1beta1.CSIStorageCapacity: failed to list *v1beta1.CSIStorageCapacity:

W0530 17:41:37.219051       1 reflector.go:324] k8s.io/client-go/informers/factory.go:134: failed to list *v1beta1.CSIStorageCapacity: the server could not find the requested resource
E0530 17:41:37.219068       1 reflector.go:138] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1beta1.CSIStorageCapacity: failed to list *v1beta1.CSIStorageCapacity: the server could not find the requested resource

설명

좀 더 상황을 자세히 설명하면

1. pvc는 잘만들어짐, storageclass는 openebshost를 사용하는데, waiting 상태

2. jupyter-**** pod가 만들어지지 않음

3. spawning하는 도중에 문제 생긴 듯 

4. userschduler pod를 자세히봄

 

관련해서 해결책을 찾음. 심지어 2일전 git에 올라온 해결책이었음

 

values.yaml에서 image 수정

template에서 configmap 수정

 

참고

 

https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/3128

 

Custom Scheduler Incompatible with Kubernetes 1.27 · Issue #3128 · jupyterhub/zero-to-jupyterhub-k8s

Bug description AWS EKS recently released Kubernetes 1.27 for general availability. I upgraded and today jupyterhub users were saying their singleuser notebook servers couldn't boot. The pods appea...

github.com

 

728x90
반응형