Lab: To setup your own lab environment, you can either use minikube
, local nodes, or managed k8s services. This repository contains a terraform code to set up Azure K8s Service cluster here.
-
Configure tab completion for
kubectl
- Edit the bashrc profile:
vim ~/.bashrc
- Add a new line:
source <(kubectl completion bash)
.
Note: If you are using an alias k for kubectl, you need to the add a new line with
complete -o default -F __start_kubectl k
. - Edit the bashrc profile:
-
Use
kubectl api-resources --namespaced=true
orfalse
to find the Shortforms, APIVersions, and Kind for any yaml.