Skip to content

09. Kubernetes

Siarhei P edited this page Jun 13, 2024 · 7 revisions

Homework Assignment 1: KinD Kubernetes Cluster Setup

  1. Install Docker and KinD on your local machine.
  2. Create a KinD cluster with a single control plane node.
  3. Verify that the cluster is up and running using kubectl.

Homework Assignment 2: Minikube Kubernetes Cluster Setup

  1. Install Minikube and a hypervisor (e.g., VirtualBox/Docker) on your local machine.
  2. Start a Minikube cluster with a single node.
  3. Confirm that the cluster is operational using kubectl.

Homework Assignment 3: GitHub Actions for KinD Cluster Setup

  1. Create a GitHub repository for your Kubernetes-related assignments.
  2. Write a GitHub Actions workflow that sets up a KinD cluster.
  3. Configure the workflow to run on every push to a specific branch.
  4. Use a Docker container or GitHub-hosted runner for the workflow execution.

Homework Assignment 4: GitHub Actions for Minikube Cluster Setup

  1. Enhance the existing GitHub repository with another Actions workflow.
  2. This time, create a workflow that sets up a Minikube cluster.
  3. Configure the workflow to run on pull requests to the repository.
  4. Utilize appropriate GitHub Actions features to customize the workflow execution environment.

Please check in the last two assignments:

  • how many nodes they have
  • which latest version of Kubernetes they are using
  • how long they spin up (you can provide just timing)

History of your commands and github-action file(s) add into folder 09.Kubernetes and prepare PR (Pull Request)


How to install kubectl: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/