728x90 k8s2 k8s swap off 재부팅시 다시 켜짐 sudo swapoff -a 재부팅해도 계속 설정 sudo sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab https://askubuntu.com/questions/214805/how-do-i-disable-swap 2022. 6. 10. 쿠버네티스 명령어 현재 쿠버네티스 클러스터가 지원하는 API 리소스 목록 출력 kubectl api-resources 특정 API 리소스에 대해 간단한 설명 확인 kubectl explain pod[API 리소스] 파드 등록 kubectl apply -f pod.yaml yml 삭제 및 서비스, 파드 등등 삭제 kubectl delete -f pod.yaml kubectl delete pod hello[파드 명] kubectl delete service hello[서비스 명] 모든 파드 정보 kubectl get pod -o wide 모든 노드 정보 kubectl get node -o wide 특정 파드의 정보 kubectl describe pod hello[파드] 특정 파드 안의 특정 컨테이너 명령어 kubectl ex.. 2022. 4. 30. 이전 1 다음 728x90