This commit is contained in:
theadam 2025-04-27 16:51:01 +02:00
parent fa3ef6387c
commit 8146838338

View file

@ -18,4 +18,14 @@ Source the `kubectl completion bash` in the ~/.bashrc file on every login. A sim
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)