본문 바로가기

기타/Docker & K8S

k9s 설치 및 사용

k9s는 k8s 운영 및 관리 툴이다.

k9s 설치

Windows Terminal에서 k9s를 설치한다.

curl.exe -A MS https://webinstall.dev/k9s | powershell

 

k9s help를 쳐보면 k9s가 성공적으로 설치된 것을 알 수 있다.

 

k9s 간단한 명령어

# List all available CLI options
k9s help
# Get info about K9s runtime (logs, configs, etc..)
k9s info
# Run K9s in a given namespace.
k9s -n mycoolns
# Run K9s and launch in pod view via the pod command.
k9s -c pod
# Start K9s in a non default KubeConfig context
k9s --context coolCtx
# Start K9s in readonly mode - with all modification commands disabled
k9s --readonly

 

k9s 사용

k9s -c pod를 치면 아래와 같이 사용하고 있는 context의 pod들을 보여준다.

 

아래와 같이 pod의 로그를 볼 수 있다.

'기타 > Docker & K8S' 카테고리의 다른 글

Windows에 Docker, K8S 설치  (0) 2022.03.21