Skip to content

guidalabs/kubernetes-fundamentals-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 

Repository files navigation

Kubernetes Fundamentals Exercises

This project contains labs for the Kubernetes Fundamentals training.

In this workshop we will use the application:

Install software

Other pre-requisites (provided by your trainer)

  • Network details
  • A personal namespace
  • An instruction to download your kubeconfig file

Configure kubeconfig

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/)

  1. Copy the content of your kubeconfig file and write to ~/.kube/config.
  2. 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>
  1. Permanently save the namespace for all subsequent kubectl commands with the following command:
kubectl config set-context --current --namespace=<NAMESPACE>

Start point exercises

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//

Deployment, Service, Ingress

Configuration

Labels

Storage

Networking

Troubleshooting

Cronjob

Horizontal Pod Autoscaler

Helm

Extra exercises

  • Install Wordpress using Helm - Hint: Enable ingress using vars ingress.* and set service.type to ClusterIp
  • Create an app deployment (e.g. nginx) from scratch with a liveness probe, replicas, ingress, resource limits and configmap

Katacoda

Unwind

unset KUBECONFIG

and / or revert to your old config backed-up earlier

cp ~/.kube/configBackup ~/.kube/config

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published