It’s very tedious to type full command when you operate on K8s cluster, this blog is the summary of alias I adopt in daily work.
Put these alias to $HOME/.bashrc
or $HOME/.zshrc
, then sourcing it or next time when you login they will take effect.
Some quick commands used to create resources:
1 | ## create nodeport svc to expose access |
These are some aliases used to run test:
1 | ## exit will delete the pod automatically |
很多都是当时在IBM 时候的命令了,留着做个纪念吧.
1 | ## docker shortcut |