๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿš€ Backend

k8s - Udemy Voting-app-worker m1 ์—๋Ÿฌ

by dev.py 2022. 8. 15.

์—ญ์‹œ ์‹ค์Šต์šฉ์œผ๋กœ M1์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐ, ํ˜ธํ™˜์„ฑ ๋ฌธ์ œ๋Š” ์–ด๋Š ์ •๋„ ์˜ˆ์ƒํ•˜๊ณ  ๋“ฃ๋Š” ๊ฒƒ์ด ํŽธํ•˜๋‹ค.

 

์‹ค์Šต ์˜ˆ์ œ ๊ตฌ์„ฑ๋„

 

์œ„ ํ™”๋ฉด์˜ ์ปจํ…Œ์ด๋„ˆ๋“ค๊ณผ ์„œ๋น„์Šค๋ฅผ ๊ตฌ์ถ•ํ•˜๋Š” ์‹ค์Šต์ธ๋ฐ,

System.NotSupportedException ๋กœ๊ทธ

Woker Pod(conatainer)๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ฐ, ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค.

 

M1 ์œผ๋กœ ์ธํ•œ tensorflow, pyqt, jupyter, python ๋ฒ„์ „ ๋“ฑ ๊ณ ํ†ต์„ ๋ฐ›์•„๋ณธ ๋‚˜๋Š” 

exception ์ด๋ฆ„์— System์ด ๋“ค์–ด์žˆ๋Š” ๊ฒƒ์„ ๋ณด๊ณ 

M1 Arm64 ํ˜ธํ™˜๋ฌธ์ œ์ž„์„ ์ง๊ฐ ํ–ˆ๋‹ค.๐Ÿ˜‚๐Ÿ˜‚๐Ÿ˜‚

 

์ผ๋‹จ QnA์— ์˜ฌ๋ ธ์ง€๋งŒ,

๊ธฐ๋‹ค๋ฆผ์˜ ๋ฏธ๋•์ด ์—†๋Š” ํ•œ๊ตญ์ธ๐Ÿ‡ฐ๐Ÿ‡ท ์ง์ ‘ ํ•ด๊ฒฐํ•ด๋ณด๊ธฐ๋กœ ํ–ˆ๋‹ค.

 

docker hub๋กœ ๋“ค์–ด๊ฐ€ ์ด๋ฏธ์ง€ ๋ฒ„์ „์„ ํ™•์ธํ•ด๋ณด๋ฉด ๋ฌด๋ ค ์ตœ๊ทผ commit(?)์ด 2๋…„ ์ „ arm64๊ฐ€ ๋ ๋ฆฌ๊ฐ€ ์—†๋‹ค

์‹ค์Šต์— ์‚ฌ์šฉ๋œ kodekloud/examplevotingapp_worker ์ด๋ฏธ์ง€

 

ํ˜น์‹œ๋‚˜ ์‹ถ์–ด ์ˆ˜์—…์— ์‚ฌ์šฉํ•œ v1 ๋ง๊ณ  v2, latest๋กœ ์‚ฌ์šฉํ•ด๋ดค์ง€๋งŒ ๋™์ผํ•˜๊ฒŒ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค.

 

ํ•˜์ง€๋งŒ ๋ถˆ๊ตด์˜ ํ•œ๊ตญ์ธ 

docker sample demo

๋‹คํ–‰ํžˆ ์˜ˆ์ œ๋กœ ์“ฐ์ธ ๋ฌธ์ œ๊ฐ€ Kodekloud ์ž์ฒด ์ƒ์„ฑ์ด ์•„๋‹Œ ๋„์ปค ์ƒ˜ํ”Œ์ด๋‹ค.

 

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค. ๐Ÿ™๐Ÿ™๐Ÿ™

 

์ตœ๊ทผ ์—…๋ฐ์ดํŠธ ๋˜์—ˆ๊ณ , ์ง€์›ํ•˜๋Š” Arch์— Arm64๊ฐ€ ์กด์žฌํ•˜๋Š” ๋„์ปค ์ด๋ฏธ์ง€๋ฅผ ์ฐพ์•˜๊ณ ,

voting-app-pod.yaml

 

์ด๋ฅผ ์ ์šฉํ–ˆ๊ณ 

voting-app-service
result-app-service

 

ํ•ด๊ฒฐ ๋˜์—ˆ๋‹ค.

 

QnA ํ™”๋ฉด. ์ž๋ฌธ์ž๋‹ต ๐Ÿ˜ค๐Ÿ˜ค๐Ÿ˜ค๐Ÿ˜ค

https://github.com/sungchan1/Kubernetes_Voting_APP_Demo_ARM64-m1-

 

GitHub - sungchan1/Kubernetes_Voting_APP_Demo_ARM64-m1-: Udemy Absolute beginner with m1

Udemy Absolute beginner with m1. Contribute to sungchan1/Kubernetes_Voting_APP_Demo_ARM64-m1- development by creating an account on GitHub.

github.com