728x90
반응형
SMALL
swap 메모리 비활성화
|
sudo modprobe br_netfilter
sudo sysctl net.bridge.bridge-nf-call-iptables=1
sudo sysctl net.ipv4.ip_forward=1
sudo vim /etc/sysctl.conf
net.bridge.bridge-nf-call-iptables=1
net.ipv4.ip_forward=1
cat /proc/swaps
containerd 적용
|
sudo mkdir -p /etc/containerd
containerd config default | sudo tee /etc/containerd/config.toml > /dev/null
sudo vim /etc/containerd/config.toml
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
SystemdCgroup=true
sudo systemctl restart containerd
sudo systemctl enable containerd
sudo systemctl status containerd
쿠버네티스 설치
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl
sudo mkdir -p /etc/apt/keyrings
sudo curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.29/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.29/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
다음 명령어로 버전을 고정시킨다.
sudo apt-mark hold kubelet kubeadm kubectl
sudo -i
kubelet --version
kubeadm version
kubectl version --output=yaml
728x90
반응형
LIST
'App Programming > Kubernetes' 카테고리의 다른 글
[K8s] 리플리카셋 조정 (0) | 2024.06.08 |
---|---|
[K8s] 디플로이먼트 (Deployment) (0) | 2024.06.08 |
[K8s] 매니페스트 (Manifest) (0) | 2024.06.08 |
[K8s] 쿠버네티스 설치 (2) (0) | 2024.06.08 |
쿠버네티스 (Kubernetes) (0) | 2023.07.11 |