본문 바로가기

Kubernetes3

kubernetes 설정 - 1 (컨트롤 플레인) -Control Plane→ 사양 : cpu x 2, ram 2g→ 포트 (inbound) : 6443, 2379-2380, 10250, 10259, 10257→ 포트 확인 : nc 127.0.0.1 6443 -zv -w 2 → packet forwarding 설정 :cat : sudo sysctl --system: sysctl net.ipv4.ip_forward -진행순서→ 패키지 업데이트 : sudo apt update && sudo apt upgrade -y→ 스왑 비활성화 : sudo swapoff -a sudo sed -i '/swap/d' /etc/fstab→ docker 혹은 containerd 설치 : sudo apt install containerd -y→ containerd 기본 설정 .. 2025. 11. 26.
[Kubernetes] Command - "kubectl port-forward" kubernetes lab은 위와 같다.    마스터 노드의 주소   worker-node와 잘 연결이 되어있다.     pod를 생성한다.    pod의 주소  curl 명령어를 실행하면은 연결이 되지 않는다.  마스터 노드의 주소 "10.0.1.201"과워커 노드의 주소 "10.44.0.1"이 다른 네트워크에 속해있기 때문이다.   해결방법    worker-node-1 에서 실행되고 있는 test1 pod는worker-node-1 80번 포트로 실행이 되고 있다.     worker-node-1의 80번 포트와 control-plain의 80번 포트를 "port-forwarding"해준다.    정상적으로 명령어가 실행이 된다.   port-forwarding 관련은 아래의 포스팅을 참고 https.. 2024. 6. 21.
[Linux] rocky linux containerd 설치하기 https://phoenixnap.com/kb/install-kubernetes-on-rocky-linux How to Install Kubernetes on Rocky Linux {Manual or via Ansible}Follow this easy to tutorial to learn how to install Kubernetes on Rocky Linux manually or by using the Ansible IaC automation platform.phoenixnap.com 2024. 6. 20.