K9s: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
{|
{|class='wikitable'
|valign='top'|
|valign='top' style='width:50%'|
<syntaxhighlight lang="bash">
<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='top'|
|valign='top' style='width:50%'|
<syntaxhighlight lang="bash">
<syntaxhighlight lang='bash'>
sudo snap install k9s
sudo snap install k9s
sudo snap remove  k9s
sudo snap remove  k9s
Line 14: Line 14:
|-
|-
|valign='top' colspan='2'|
|valign='top' colspan='2'|
<syntaxhighlight lang="bash">
<syntaxhighlight lang='bash'>
cat <<-'EXE'|sudo bash
cat <<-'EXE'|sudo bash
K9S_PLATFORM="$(uname -s)_$(dpkg --print-architecture)"
K9S_PLATFORM="$(uname -s)_$(dpkg --print-architecture)"
Line 28: Line 28:


==Playground==
==Playground==
{|
{|class='wikitable mw-collapsible'
| valign="top" |
!scope='col' style='text-align:left' colspan='2'|
<syntaxhighlight lang="bash">
Playground
k9s help
|-
k9s info
|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="top" |
|valign='top' style='width:50%'|
 
<syntaxhighlight lang='bash'>
| valign="top" |
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>
|-
|-
| colspan="3" |
|valign='top'|
----
<syntaxhighlight lang='bash'>
|-
k9s help
| valign="top" |
k9s info
 
k9s
| valign="top" |
</syntaxhighlight>
 
| valign="top" |


|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="top" |
!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]
Line 64: Line 99:
* [https://k9scli.io/ K9s]
* [https://k9scli.io/ K9s]


| valign="top" |
|valign='top' style='width:33%'|


| valign="top" |
|valign='top' style='width:33%'|


|-
|-
| colspan="3" |
|valign='top'|
----
|-
| valign="top" |
* [[Google Cloud CLI]]
* [[Google Cloud CLI]]
* [[Linux Containers]]
* [[Linux Containers]]
Line 84: Line 116:
* [[K8s]]
* [[K8s]]


| valign="top" |
|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 93: Line 126:
* [[Snap]]
* [[Snap]]


| valign="top" |
|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