NfreerCom / servermaster

시스템관리자
MIT License
0 stars 0 forks source link

nerdctl #3

Open NfreerCom opened 1 year ago

NfreerCom commented 1 year ago

nerdctl 명령어

컨테이너 접속

kubectl exec -it centos -- bash

docker hub 로그인

nerdctl login -u newfreer

응답없는 pod 강제 삭제

kubectl delete pods <pod>

서버팟(PO) 확인

 kubectl get po && kubectl describe po *

po 삭제

kubectl delete po po명

네임스페이스 추가

kubectl create namespace 이름

기본 네임스페이스 변경

kubectl config set-context --current --namespace=<insert-namespace-name-here>