kubexercises

System for practicing and testing Kubernetes knowledge.

kubexercises

Overview

Kubexercises uses the Terminal to carry out the activities. A web browser is not needed. Through the Kubexercises you can:

  • List availables activities grouped by Kubenetes concepts.
  • Chech your answers on each activity.
  • Knows the correct answer in case you don’t know how to solve it.
  • Easily check the correct answer in your Terminal.
  • Run the activities in your prefered language (English or Spanish).

How it works

Asks for the first activity.

$ ke pods activity 1

Create a pod with the following configuration:

► pod name:         my-nginx
► container name:   nginx
► container image:  nginx:1.25.2-alpine
► pod state:        Running

Try your own solution.

$ kubectl run my-nginx --image nginx:1.25.2
pod/my-nginx created

Checks if it is correct.

$ ke pods activity 1 --check

Create a pod with the following configuration:

✓ pod name:         my-nginx
✗ container name:   nginx
✗ container image:  nginx:1.25.2-alpine
✓ pod state:        Running

Check the answer provided by the author.

$ ke pods activity 1 --answer

Manifests used to answer the statement:

apiVersion: v1
kind: Pod
metadata:
  name: my-nginx
  namespace: default
spec:
  containers:
    - name: nginx
      image: nginx:1.25.2-alpine

Check if the new answer fits the requirements.

$ ke pods activity 1 --raw-answer --clean | kubectl apply -f -
pod/my-nginx created

Check again the answer.

$ ke pods activity 1 --check

Create a pod with the following configuration:

✓ pod name:         my-nginx
✓ container name:   nginx
✓ container image:  nginx:1.25.2-alpine
✓ pod state:        Running

Well done!

Take the first steps

Start Now