+k-alias
This commit is contained in:
parent
fa3ef6387c
commit
8146838338
1 changed files with 11 additions and 1 deletions
12
kubectl.md
12
kubectl.md
|
@ -18,4 +18,14 @@ Source the `kubectl completion bash` in the ~/.bashrc file on every login. A sim
|
||||||
echo 'source <(kubectl completion bash)' >> ~/.bashrc
|
echo 'source <(kubectl completion bash)' >> ~/.bashrc
|
||||||
```
|
```
|
||||||
|
|
||||||
[source](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
|
[source](https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/)
|
||||||
|
|
||||||
|
### k alias kubectl
|
||||||
|
|
||||||
|
Simply add this to `~/.bashrc`
|
||||||
|
```
|
||||||
|
alias k=kubectl
|
||||||
|
complete -F __start_kubectl k
|
||||||
|
```
|
||||||
|
|
||||||
|
[source](https://github.com/boltops-learn-docs/kubernetes-tips/blob/main/k-alias.md)
|
Loading…
Add table
Reference in a new issue