This project contains labs for the Kubernetes Fundamentals training.
In this workshop we will use the application:
- Network details
- A personal namespace
- An instruction to download your kubeconfig file
By default, kubectl looks for a file named config in the $HOME/.kube directory. You can specify other kubeconfig files by setting the KUBECONFIG environment variable or by setting the --kubeconfig flag. Make your life easier with the kubectl cheatsheet (https://kubernetes.io/docs/reference/kubectl/cheatsheet/)
- Copy the content of your kubeconfig file and write to ~/.kube/config.
- Test your connection with the following commands:
kubectl version
Note, backend and client version, backend version implies you have a connection.
kubectl get pods -n <NAMESPACE>
- Permanently save the namespace for all subsequent kubectl commands with the following command:
kubectl config set-context --current --namespace=<NAMESPACE>
Now you are ready to do some κυβερνήτες !
Next you will find the actual exercises with links, for the terminal find them under the folder ./k8s//
- Install Wordpress using Helm - Hint: Enable ingress using vars
ingress.*
and setservice.type
toClusterIp
- Create an app deployment (e.g. nginx) from scratch with a liveness probe, replicas, ingress, resource limits and configmap
- Network Introduction
- Storage Introduction
- Probes
- Ingress Routing
- Helm
- CKAD scenario
- Docker Compose for Kubernetes
unset KUBECONFIG
and / or revert to your old config backed-up earlier
cp ~/.kube/configBackup ~/.kube/config