[CentOS] 7.9 Minikube ์„ค์น˜

2022. 9. 13. 19:02ใ†System ์ž‘์—…์‹ค/LINUX

728x90
๋ฐ˜์‘ํ˜•

 

 

 

 

 

๐Ÿš€ Minikube

    ๐Ÿ”ฝ  ์„ค์น˜

์ฐธ๊ณ ๋กœ Minikube๋ฅผ ์„ค์น˜ํ•˜๊ธฐ ์ „ Docker๋ฅผ ์„ค์น˜ํ•ด ์ฃผ์–ด์•ผ ํ•ด์š”. Docker ์„ค์น˜ ๋ฐฉ๋ฒ•์€ ์ด ๊ณณ์— ์ •์„ฑ์Šค๋Ÿฝ๊ฒŒ ์ค€๋น„ํ•ด ๋‘์—ˆ์–ด์š”.


์ตœ์ดˆ Minikube Binery๋ฅผ ๋‚ด๋ ค ๋ฐ›๊ณ  ์„ค์น˜ํ•ด ์ค„๊ฒŒ์š”.

https://minikube.sigs.k8s.io/docs/start/

 

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64



install minikube-linux-amd64 /usr/local/bin/minikube



๊ทธ๋Ÿฐ ๋‹ค์Œ kubectl์„ ์„ค์น˜ํ•ด ์ค„๊ฒŒ์š”.


์ตœ์ดˆ Kubernetes ๊ด€๋ จ Yum Repository ์„ค์ •์„ ์œ„์™€ ๊ฐ™์ด ์ง„ํ–‰ํ•ด ์ฃผ์—ˆ์–ด์š”.

cat <<EOF>> /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
EOF
728x90



yum install -y kubectl


์œ„์™€ ๊ฐ™์ด yum์„ ์ด์šฉํ•˜์—ฌ kubectl์„ ๋‚ด๋ ค๋ฐ›์•„ ์ฃผ์—ˆ์–ด์š”.




minikube๋Š” root ๊ถŒํ•œ์œผ๋กœ ์‹คํ–‰ํ•˜๋ฉด ์•ˆ๋˜๋Š” ๊ฒƒ์ด์—์š”.


minikube start --cpus=2 --memory=2g


dockeradmin์ด๋ผ๋Š” ๊ณ„์ •์„ ๋งŒ๋“ค๊ณ , ์œ„์™€ ๊ฐ™์ด ์‹คํ–‰ํ•ด ์ฃผ์—ˆ์–ด์š”.


๐Ÿ’ก ์ฐธ๊ณ  ์‚ฌํ•ญ
minikube start Command Option

1. --cpus=2            : minikube๊ฐ€ ์‚ฌ์šฉํ•  CPU ๊ฐœ์ˆ˜ ์„ค์ •.
2. --memory=2g  : minikube๊ฐ€ ์‚ฌ์šฉํ•  ์ตœ๋Œ€ Memory Size ์„ค์ •.
3. --addons=ingress
4. --kubernetes-version 1.20.2

 

 

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•

'System ์ž‘์—…์‹ค > LINUX' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[CentOS 7.9] Synology NAS Volume Mount  (4) 2022.11.09
[Ubuntu] logrotate  (0) 2022.11.02
[CentOS] 7.9 Docker ์„ค์น˜  (0) 2022.09.13
[Ubuntu] 22.04 LTS Ansible ์„ค์น˜  (0) 2022.09.06
[Ubuntu] apt-get-repository command not found ํ•ด๊ฒฐ๋ฒ•  (0) 2022.09.06