Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blixhavn/kubernetes-workshop


https://github.com/blixhavn/kubernetes-workshop

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

# Kubernetes workshop

In this workshop, your task is to set up a local Kubernetes cluster, and then configure the resources needed to expose a web service.

## Prerequisites
An UNIX-environment/shell with Docker available (Git Bash seems to work)

### Kubectl and Kind
Kubectl is the CLI used to communicate with Kubernetes API servers. Kind provides a simple way of running Kubernetes on your local machine.
Follow the instructions here: https://kubernetes.io/docs/tasks/tools/

### Configure your cluster with an Ingress controller
The Kind cluster needs to be set up in a particular way for this:

```
cat <
```

Verify that everything is configured correctly by visiting `localhost:8000` in your browser and see that you get a response.

### Scale

Horizontally scale your deployment, then use the `./loadtest.sh localhost:8000` script to inspect how requests are routed to different replicas.

### Rollout new version

While running the loadtest in a terminal, change the deployment to use version 2.0.0 of the image and apply it. If you have enough replicas you might see that version 1 and version 2 are living side by side for a little period.