- 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"
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a stop -n local-env
$ /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
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a start -n local-env
$ /bin/bash github.com/alex60217101990/bash-tools/k3s/library.sh -a delete -n local-env
$ /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