k8s - m1, minikube, hello-minikube localhost 접속 불가
by PyTong시작하자마자 실습에서 에러가 나왔다.
https://github.com/kubernetes/minikube/issues/12036
Cannot connect to service from localhost on M1 Mac · Issue #12036 · kubernetes/minikube
I'm trying to do the getting started example on an M1 Macbook Air but I'm unable to access the service from the browser. Minikube dashboard works however so that gives me hope that it is po...
github.com
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4
kubectl expose deployment hello-minikube --type=NodePort --port=8080
Udemy 강의와 minikube, kubernetes.io 모두 minikube에 대한 hello world 예제를 다음과 같이 주는데
아쉽게도 m1에서는 다음과 같이 작동하지 않는다.
docker 컨테이너 생성 옵션, port-forwarding, nodeport 사용법, 재부팅, 여러 방법을 시도했다.
(그 전에 docker 관련, X11, jupyter notebook, AWS 관련 설정을 많이 만져서 환경 문제인가 싶었다.)
하지만 문제는 간단했다.
문제 안에 답이 있다. (= 명령어 안에 답이 있다)
예시로 가져오는 이미지가 m1과 호환이 되지 않는다
kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver-arm:1.8
이미지를 arm 아키텍쳐를 지원하는 버전으로 가져온다.
시작부터 진이 빠진 느낌이다.... 화이팅 😤
블로그의 정보
PyTong
PyTong