본문 바로가기

⌛ AWS 인프라 구성하기 (MiniProject)/✅ 장애내용 및 해결방안

cert-manager 오류 발생 시 해결방법

# 오류 내용

I0614 07:55:48.788781       1 start.go:89] "starting" version="v1.0.2" revision="219b7934ac499c7818526597cf635a922bddd22e"
I0614 07:55:50.591182       1 request.go:645] Throttling request took 1.046604902s, request: GET:https://10.100.0.1:443/apis/admissionregistration.k8s.io/v1?timeout=32s
I0614 07:55:51.591233       1 request.go:645] Throttling request took 2.045774149s, request: GET:https://10.100.0.1:443/apis/elbv2.k8s.aws/v1alpha1?timeout=32s
E0614 07:55:51.594710       1 start.go:131] cert-manager/ca-injector "msg"="error registering controllers" "error"="no matches for kind \"MutatingWebhookConfiguration\" in version \"admissionregistration.k8s.io/v1beta1\""

버전 오류가 발생 했다...

구글에서 검색을 해보니, 신규 k8s 버전으로 인한 구 cert-manager 버전을 업그레이드 해야하는 내용이 많았다.

# 새로운 버전의 cert-manager 설치

Try

kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.4.0/cert-manager.yaml

I am using kubectl 1.22. And there is no "admissionregistration.k8s.io/v1beta1". 
So I tried to apply a higher version of cert-manager. 
v1.2.0 already moved to use "admissionregistration.k8s.io/v1". But to be safe, 
I bumped up to 1.4.0. And it works for me now.

일단 오류가 나서 올라오지 않던 pod는 해결이 됐다.