λ³Έλ¬Έ λ°”λ‘œκ°€κΈ°
πŸš€ Backend

k8s - m1, minikube, hello-minikube localhost 접속 λΆˆκ°€

by dev.py 2022. 8. 13.

μ‹œμž‘ν•˜μžλ§ˆμž μ‹€μŠ΅μ—μ„œ μ—λŸ¬κ°€ λ‚˜μ™”λ‹€.

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 아킀텍쳐λ₯Ό μ§€μ›ν•˜λŠ” λ²„μ „μœΌλ‘œ κ°€μ Έμ˜¨λ‹€.

μ‹œμž‘λΆ€ν„° 진이 λΉ μ§„ λŠλ‚Œμ΄λ‹€.... ν™”μ΄νŒ… 😀