Some bash scripts to make our life easier to use Kubernetes.
-
Download the
.ku
file to your local directory (~/.ku
for example). -
Modify your
~/.bashrc
(or~/.bash_profile
) file to import it.. ~/.ku
-
Reload your bashrc (or bash_profile) file.
source ~/.bashrc
-
tail logs (from beginning) of pod whose name is like
tester
in dev cluster.kdlog tester
-
tail logs (from most recent 20 lines) of pod whose name is like
tester
in us cluster.kpuslog tester 20
-
describe a pod in dev cluster whose name is like
tester
.kdds pod tester
-
describe a configmap in us cluster whose name is like
tester
.kpusds configmap tester
-
describe a deployment in eu cluster whose name is like
tester
.kpeuds deployment tester
-
get all images in us cluster.
kit us