Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blixhavn/kubernetes-workshop
https://github.com/blixhavn/kubernetes-workshop
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/blixhavn/kubernetes-workshop
- Owner: blixhavn
- Created: 2023-04-18T07:08:10.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-18T12:45:22.000Z (over 1 year ago)
- Last Synced: 2024-11-03T12:22:12.405Z (2 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.