Add k9s configuration and update setup
This commit is contained in:
parent
58f1800eba
commit
b480688740
2 changed files with 59 additions and 1 deletions
53
k9s_config.yml
Normal file
53
k9s_config.yml
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
k9s:
|
||||||
|
refreshRate: 2
|
||||||
|
maxConnRetry: 5
|
||||||
|
enableMouse: true
|
||||||
|
headless: false
|
||||||
|
logoless: false
|
||||||
|
crumbsless: false
|
||||||
|
readOnly: false
|
||||||
|
noExitOnCtrlC: false
|
||||||
|
noIcons: false
|
||||||
|
skipLatestRevCheck: false
|
||||||
|
logger:
|
||||||
|
tail: 100
|
||||||
|
buffer: 5000
|
||||||
|
sinceSeconds: 300
|
||||||
|
fullScreenLogs: false
|
||||||
|
textWrap: false
|
||||||
|
showTime: false
|
||||||
|
currentContext: do-sfo2-diana
|
||||||
|
currentCluster: do-sfo2-diana
|
||||||
|
clusters:
|
||||||
|
do-sfo2-diana:
|
||||||
|
namespace:
|
||||||
|
active: alpha
|
||||||
|
lockFavorites: false
|
||||||
|
favorites:
|
||||||
|
- alpha
|
||||||
|
- beta
|
||||||
|
- prod
|
||||||
|
- all
|
||||||
|
- default
|
||||||
|
view:
|
||||||
|
active: pods
|
||||||
|
featureGates:
|
||||||
|
nodeShell: false
|
||||||
|
shellPod:
|
||||||
|
image: busybox:1.35.0
|
||||||
|
command: []
|
||||||
|
args: []
|
||||||
|
namespace: default
|
||||||
|
limits:
|
||||||
|
cpu: 100m
|
||||||
|
memory: 100Mi
|
||||||
|
labels: {}
|
||||||
|
portForwardAddress: localhost
|
||||||
|
thresholds:
|
||||||
|
cpu:
|
||||||
|
critical: 90
|
||||||
|
warn: 70
|
||||||
|
memory:
|
||||||
|
critical: 90
|
||||||
|
warn: 70
|
||||||
|
screenDumpDir: /tmp/k9s-screens-d_mcknight
|
7
setup
7
setup
|
@ -6,10 +6,15 @@
|
||||||
[ -f ~/.tmux.conf ] && mv ~/.tmux.conf ~/.tmux.conf.bak
|
[ -f ~/.tmux.conf ] && mv ~/.tmux.conf ~/.tmux.conf.bak
|
||||||
[ -f ~/.dircolors ] && mv ~/.dircolors ~/.dircolors.bak
|
[ -f ~/.dircolors ] && mv ~/.dircolors ~/.dircolors.bak
|
||||||
[ -d ~/.tmux ] && mv ~/.tmux ~/.tmux.bak
|
[ -d ~/.tmux ] && mv ~/.tmux ~/.tmux.bak
|
||||||
|
[ -f ~/.config/k9s/config.yml ] && mv ~/.config/k9s/config.yml ~/.config/k9s/config.bak
|
||||||
# Link dotfiles
|
# Link dotfiles
|
||||||
[ -e ~/.tmux.conf ] || ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf
|
[ -e ~/.tmux.conf ] || ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf
|
||||||
[ -e ~/.bashrc ] || ln -s ~/.dotfiles/.bashrc ~/.bashrc
|
[ -e ~/.bashrc ] || ln -s ~/.dotfiles/.bashrc ~/.bashrc
|
||||||
[ -e ~/.nanorc ] || ln -s ~/.dotfiles/.nanorc ~/.nanorc
|
[ -e ~/.nanorc ] || ln -s ~/.dotfiles/.nanorc ~/.nanorc
|
||||||
[ -e ~/.tmux ] || ln -s ~/.dotfiles/.tmux ~/.tmux
|
[ -e ~/.tmux ] || ln -s ~/.dotfiles/.tmux ~/.tmux
|
||||||
[ -e ~/.dircolors ] || ln -s ~/.dotfiles/.dircolors ~/.dircolors
|
[ -e ~/.dircolors ] || ln -s ~/.dotfiles/.dircolors ~/.dircolors
|
||||||
|
|
||||||
|
# k9s only if directory exists
|
||||||
|
if [ -d ~/.config/k9s ]; then
|
||||||
|
[ -e ~/.config/k9s/config.yml ] || ln -s ~/.dotfiles/k9s_config.yml ~/.config/k9s/config.yml
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue