๐๐ป k3s๋ ๊ฒฝ๋ ์ฟ ๋ฒ๋คํฐ์ค ์
๋๋ค.
k3s is a lightweight Kubernetes.
๐๐ป ํด๋ผ์ฐ๋ ํ๊ฒฝ์์๋ ์ฟ ๋ฒ๋คํฐ์ค(k8s)๋ฅผ ์ฌ์ฉํด๋ ๋์ง๋ง ์ฌ์์ด ๋ฎ์ ๊ฐ์ธ pc์ ๊ฒฝ์ฐ๋ ์ฟ ๋ฒ๋คํฐ์ค๋ ๋ถ๋ด์ด ๋ ์ ์์ต๋๋ค.
In a cloud environment, you can use Kubernetes (k8s), but for personal PCs with low specifications, Kubernetes can be a burden.
๐๐ป๊ทธ๋์ ํด๋ผ์ฐ๋ ํ๊ฒฝ์ด ์๋ ๊ณณ์์ ๊ฐ๋ณ๊ฒ ์๋ฒ๋ฅผ ๊ตฌ๋ํ ๊ฒฝ์ฐ์๋ k3s๋ฅผ ์ฌ์ฉํ๋๊ฒ ํจ์จ์ ์
๋๋ค.
Therefore, using k3s is efficient when running a lightweight server in a non-cloud environment.
๐๐ป ์๋๋ ๊ฐ๋จํ ์ค์นํ๋ ๋ฐฉ๋ฒ์
๋๋ค.
Below is a simple installation method.
๐๐ป ์ฐธ๊ณ ๋ก ์ ๊ฐ ํ
์คํธ ํ๋ ํ๊ฒฝ์ ์๋์ ๊ฐ์ต๋๋ค.
For reference, the testing environment I am using is as follows.
— CPU : Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
— RAM : 4GB
1) ๊ธฐ๋ณธ ์ค๋น / basic preparation
sudo apt update
sudo apt install -y curl
2) k3s ์ค์น (๊ธฐ๋ณธ ์ต์ ) / k3s installation (default option)
curl -sfL https://get.k3s.io | sh -
3) ์ํ ํ์ธ / Check status
sudo systemctl status k3s
sudo k3s kubectl get nodes
4) kubectl ํธํ๊ฒ ์ฐ๊ธฐ (์ ํ) / Using kubectl comfortably (optional)
โ๏ธ sudo ๋ช
๋ น ์์ด ์ผ๋ฐ์ฌ์ฉ์๋ก kubectl์ ์คํ๊ฐ๋ฅํ๊ฒ ํ๋ ๋ช
๋ น์ด
A command that allows you to run kubectl as a regular user without the sudo command
mkdir -p $HOME/.kube
sudo cp /etc/rancher/k3s/k3s.yaml $HOME/.kube/config
sudo chown $USER:$USER $HOME/.kube/config