K9s: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| | {|class='wikitable' | ||
| valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
brew install derailed/k9s/k9s | brew install derailed/k9s/k9s | ||
brew uninstall derailed/k9s/k9s | brew uninstall derailed/k9s/k9s | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang= | <syntaxhighlight lang='bash'> | ||
sudo snap install k9s | sudo snap install k9s | ||
sudo snap remove k9s | sudo snap remove k9s | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign=" | |- | ||
|valign='top' colspan='2'| | |||
<syntaxhighlight lang='bash'> | |||
cat <<-'EXE'|sudo bash | |||
K9S_PLATFORM="$(uname -s)_$(dpkg --print-architecture)" | |||
K9S_BINARY="$(echo "k9s_${K9S_PLATFORM}.deb"|tr '[:upper:]' '[:lower:]')" | |||
K9S_VERSION="$(curl -s https://api.github.com/repos/derailed/k9s/releases/latest | grep -Po '"tag_name": "v\K[^"]*')" | |||
curl -fsSLo "${K9S_BINARY}" "https://github.com/derailed/k9s/releases/download/v${K9S_VERSION}/${K9S_BINARY}" | |||
dpkg -i "${K9S_BINARY}" | |||
rm "${K9S_BINARY}" | |||
apt-get install -f | |||
EXE | |||
</syntaxhighlight> | |||
|} | |} | ||
==Playground== | ==Playground== | ||
{| | {|class='wikitable mw-collapsible' | ||
| valign= | !scope='col' style='text-align:left' colspan='2'| | ||
<syntaxhighlight lang= | Playground | ||
k9s | |- | ||
k9s | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | |||
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml -c ctx | |||
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml -c ns | |||
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml -A | |||
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml | |||
</syntaxhighlight> | </syntaxhighlight> | ||
| valign= | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | |||
| valign= | export KUBECONFIG=${HOME}/.kube/shahed-aa-kubeconfig.yaml | ||
k9s -c ns | |||
k9s -A | |||
k9s | |||
</syntaxhighlight> | |||
|- | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
k9s --context shahed-aa -n shahed-wiki-mediawiki -c pod | |||
k9s --context shahed-aa -n shahed-wiki-mediawiki -c ing | |||
k9s --context shahed-aa -n shahed-wiki-mediawiki | |||
k9s --context shahed-aa -c ns | |||
k9s --context shahed-aa -A | |||
k9s --context shahed-aa | |||
</syntaxhighlight> | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
k9s -n shahed-wiki-mediawiki -c pod | |||
k9s -n shahed-wiki-mediawiki -c ing | |||
k9s -n shahed-wiki-mediawiki | |||
k9s -c ns | |||
k9s -A | |||
k9s | |||
</syntaxhighlight> | |||
|- | |- | ||
| | |valign='top'| | ||
<syntaxhighlight lang='bash'> | |||
| | k9s help | ||
k9s info | |||
k9s | |||
</syntaxhighlight> | |||
|valign='top'| | |||
<syntaxhighlight lang='bash'> | |||
export KUBECONFIG=${HOME}/.kube/shahed-aa-kubeconfig.yaml | |||
kubectl config view -o=yaml|yq '.contexts[0].name' | |||
kubectl config get-contexts | |||
</syntaxhighlight> | |||
|} | |} | ||
== References == | ==References== | ||
{| | {|class='wikitable mw-collapsible' | ||
| valign= | !scope='col' style='text-align:left' colspan='3'| | ||
References | |||
|- | |||
|valign='top' style='width:34%'| | |||
* [https://askubuntu.com/questions/1477547/ K9s » Install On Ubuntu] | * [https://askubuntu.com/questions/1477547/ K9s » Install On Ubuntu] | ||
* [https://www.hackingnote.com/en/cheatsheets/k9s/ K9s » Cheatsheet] | * [https://www.hackingnote.com/en/cheatsheets/k9s/ K9s » Cheatsheet] | ||
* [https://k9scli.io/topics/commands/ K9s » Commands] | * [https://k9scli.io/topics/commands/ K9s » Commands] | ||
* [https://www.reddit.com/r/Ubuntu/comments/17lj3s9/k9s_via_snap/ K9s » Snap » Bug] | * [https://www.reddit.com/r/Ubuntu/comments/17lj3s9/k9s_via_snap/ K9s » Snap » Bug] | ||
* [https://github.com/derailed/k9s/releases K9s » Releases] | |||
* [https://github.com/derailed/k9s/tree/master/plugins K9s » Plugins] | |||
* [https://k9scli.io/topics/install/ K9s » Install] | * [https://k9scli.io/topics/install/ K9s » Install] | ||
* [https://snapcraft.io/k9s K9s » Snap] | * [https://snapcraft.io/k9s K9s » Snap] | ||
* [https://k9scli.io/ K9s] | * [https://k9scli.io/ K9s] | ||
| valign= | |valign='top' style='width:33%'| | ||
| valign= | |valign='top' style='width:33%'| | ||
|- | |- | ||
|valign='top'| | |||
| valign= | |||
* [[Google Cloud CLI]] | * [[Google Cloud CLI]] | ||
* [[Linux Containers]] | * [[Linux Containers]] | ||
| Line 71: | Line 116: | ||
* [[K8s]] | * [[K8s]] | ||
| valign= | |valign='top'| | ||
* [https://serverfault.com/questions/283129/ SSH » Connection Hang Forever] | * [https://serverfault.com/questions/283129/ SSH » Connection Hang Forever] | ||
* [[Lazy Docker]] | |||
* [[Homebrew]] | * [[Homebrew]] | ||
* [[Linuxbrew]] | * [[Linuxbrew]] | ||
| Line 80: | Line 126: | ||
* [[Snap]] | * [[Snap]] | ||
| valign= | |valign='top'| | ||
|} | |} | ||
Latest revision as of 05:49, 19 January 2026
brew install derailed/k9s/k9s
brew uninstall derailed/k9s/k9s
|
sudo snap install k9s
sudo snap remove k9s
|
cat <<-'EXE'|sudo bash
K9S_PLATFORM="$(uname -s)_$(dpkg --print-architecture)"
K9S_BINARY="$(echo "k9s_${K9S_PLATFORM}.deb"|tr '[:upper:]' '[:lower:]')"
K9S_VERSION="$(curl -s https://api.github.com/repos/derailed/k9s/releases/latest | grep -Po '"tag_name": "v\K[^"]*')"
curl -fsSLo "${K9S_BINARY}" "https://github.com/derailed/k9s/releases/download/v${K9S_VERSION}/${K9S_BINARY}"
dpkg -i "${K9S_BINARY}"
rm "${K9S_BINARY}"
apt-get install -f
EXE
| |
Playground
|
Playground | |
|---|---|
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml -c ctx
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml -c ns
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml -A
k9s --kubeconfig ${HOME}/.kube/shahed-aa-kubeconfig.yaml
|
export KUBECONFIG=${HOME}/.kube/shahed-aa-kubeconfig.yaml
k9s -c ns
k9s -A
k9s
|
k9s --context shahed-aa -n shahed-wiki-mediawiki -c pod
k9s --context shahed-aa -n shahed-wiki-mediawiki -c ing
k9s --context shahed-aa -n shahed-wiki-mediawiki
k9s --context shahed-aa -c ns
k9s --context shahed-aa -A
k9s --context shahed-aa
|
k9s -n shahed-wiki-mediawiki -c pod
k9s -n shahed-wiki-mediawiki -c ing
k9s -n shahed-wiki-mediawiki
k9s -c ns
k9s -A
k9s
|
k9s help
k9s info
k9s
|
export KUBECONFIG=${HOME}/.kube/shahed-aa-kubeconfig.yaml
kubectl config view -o=yaml|yq '.contexts[0].name'
kubectl config get-contexts
|
References
|
References | ||
|---|---|---|