👉🏻 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