본문 바로가기
자질구레

[Kubernetes] bitnami/mysql startup probe failed 문제

by jonnwon 2024. 11. 3.
728x90
반응형
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo list
helm search repo mysql
helm repo update

helm install mydb bitnami/mysql
helm list

 

 

helm uninstall mydb 후  재 배포시 파드가 실행 안되는 문제 발생

 

kubectl describe 를 통해 pod 로그 확인

startup probe failed: mysqladmin: [Warning] Using a password on the command line interface can be insecure.

 

bitnami/mysql 이 스테이트풀셋으로 배포됨. 파드별 스토리지 소유 & 스케일 다운시에도 PVC는 남기고 파드 삭제됨.

 

 

root 패스워드 지정 안하면 root 패스워드가 랜덤으로 생성됨.

 

아래와 같이 values 변경을 위한 테스트 파일 만들어준 후 

 

helm install mydb bitnami/mysql -f test.yaml

 

이후 삭제 및 재배포 해도 에러 발생하지 않음을 확인 가능.

 

 

artifacthub 에서 bitnami/mysql 의 Default values 를 참고하거나 

helm show values bitnami/mysql 

를 통해 확인하여 수정할 수 있겠다.

 

 

 

 

 

참고

https://dev-scratch.tistory.com/180

https://github.com/bitnami/charts/issues/4826

https://artifacthub.io/packages/helm/bitnami/mysql?modal=values&path=auth.rootPassword

728x90