Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.3 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.3 KB

Bash tools:

Custom bash output logging:

  • From current directory with scripts source logger.sh file:
$ source ./logger.sh -c=true

colors for output can include/exclude with flag -c

after this you can write beauty logs in terminal:

$ INFO "test some text"
$ DEBUG "test some debug"
$ ERROR "test some error"

output example: output example

k3s cluster utils:

Stop existing cluster:
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a stop -n local-env 

Deploy new cluster:

$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a apply -n local-env -sc 2 -rm 4G -rs 4G -mm 30G -ms 20G -cm 2 -cs 2
Start existing cluster:
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a start -n local-env 
Delete existing cluster:
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a delete -n local-env 
Setup kubeconfig file:
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a setup -n local-env

Export new kubeconfig file:

$ export KUBECONFIG=$HOME/.kube/config.d/config_local_env