You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The exercises are ordered in the way we think it makes sense to introduce Kubernetes concepts.
You can find a summary of many of the commands used in the exercises in the
cheatsheet.md.
❗ The katas expect that you have access to a kubernetes cluster.
Please have a look at the Setup section if that is not the case.
There are plenty of free and easy options.
The commands above will enable kubectl autocompletion when you start a new bash session and source
(reload) bashrc i.e. enable kubectl autocompletion in your current session.
A collection of useful commands to use throughout the exercises:
kubectl api-resources # List resource types
kubectl explain <resource># Show information about a resource
kubectl explain deployment
# List resources in cluster
kubectl get <resource># In current namespace
kubectl get <resource> -n <namespace># In specific namespace
kubectl get <resource> --all-namespaces # In all namespaces
kubectl get <resource> -o wide # Add extended information
kubectl get <resource> -o yaml # output in YAML format
kubectl get <resource> -o json # output in JSON format# Example
kubectl get pods [-n abc|--all-namespaces] [-o wide|yaml|json]