본문 바로가기

Kubernetes

[kubernetes] k9s 설치

반응형

 

1. k9s 란?

k9s는 Kubernetes 클러스터를 터미널에서 사용하기 위한 CLI 도구입니다. 아래의 링크에서 자세한 정보를 확인할 수 있습니다. 

 

 * 공식 웹사이트 : https://k9scli.io/

 

K9s - Manage Your Kubernetes Clusters In Style

Who Let The Pods Out? K9s is a terminal based UI to interact with your Kubernetes clusters. The aim of this project is to make it easier to navigate, observe and manage your deployed applications in the wild. K9s continually watches Kubernetes for changes

k9scli.io

 * k9s github : https://github.com/derailed/k9s

 

GitHub - derailed/k9s: 🐶 Kubernetes CLI To Manage Your Clusters In Style!

🐶 Kubernetes CLI To Manage Your Clusters In Style! - GitHub - derailed/k9s: 🐶 Kubernetes CLI To Manage Your Clusters In Style!

github.com

2. k9s 설치

2-1) 최신 버전 설치

$ K9S_VERSION=$(curl -s https://api.github.com/repos/derailed/k9s/releases/latest | jq -r '.tag_name')

$ wget https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_amd64.tar.gz

$ sudo tar xfz ./[파일명] -C /usr/local/bin k9s

 

2-2) 특정 버전 설치

https://github.com/derailed/k9s/releases 에서 버전 확인

$ K9S_VERSION=v0.26.7

$ wget https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_x86_64.tar.gz

$ sudo tar xfz ./[파일명] -C /usr/local/bin k9s

 

※ AWS Amazon Linux에서 k9s 설치시 aws-cli 버전을 확인하여 aws-cli 버전에 맞는 k9s 버전 선택하여 설치 필요

3. k9s 실행

$ k9s version

$ k9s

 

 

[참고]

- https://awskocaptain.gitbook.io/aws-builders-eks/1.-cloud9-ide

- https://zetawiki.com/wiki/%EB%A6%AC%EB%88%85%EC%8A%A4_k9s_%EC%84%A4%EC%B9%98

반응형