https://github.com/bryanl/k8s-trouble
https://github.com/bryanl/k8s-trouble
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/bryanl/k8s-trouble
- Owner: bryanl
- License: apache-2.0
- Created: 2019-10-05T14:54:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-12-03T07:48:36.000Z (over 6 years ago)
- Last Synced: 2025-04-13T07:14:02.899Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 31.3 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Kubernetes Troubleshooting Workshop
## Introduction
This workshop contains multiple labs that are designed to introduce a user to
troubleshooting techniques that may be useful for developers who interact with
Kubernetes.
No previous Kubernetes experience is assumed.
## Setup
### 0. Prerequisites
This lab requires a working Kubernetes installation. The lab assumes you are using minikube.
Getting started directions live at https://minikube.sigs.k8s.io/docs/start/
Update your current Kubernetes context to be minikube
```sh
$ kubectl config use-context minikube
```
### 1. Verify installation
Run `kubectl get nodes` from inside your lab shell. If
two nodes are returned, your lab is configured correctly
### 2. Setup an `ingress`
```sh
$ minikube addons enable ingress
```
### 3. Setup metrics
In your shell, run `./lab-scripts/init-metrics.sh`. This
command sets up a metrics server on your cluster.
### 4. Set up hosts
To make accessing the cluster easier, add `app.local` to your hosts file.
* windows: C:\Windows\System32\Drivers\etc\hosts
* others: /etc/hosts
You can get the IP with `minikube ip`
eg
```sh
172.16.55.222 app.local
```