Skip to content

Commit d569407

Browse files
committed
PEER-244,245: Add README instructions and TOC
Signed-off-by: SeeuSim <[email protected]>
1 parent c087f59 commit d569407

File tree

1 file changed

+41
-4
lines changed

1 file changed

+41
-4
lines changed

k8s/README.md

Lines changed: 41 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
11
# Kubernetes Instructions
22

3+
## Table of Contents
4+
5+
- [Prerequisites](#prerequisites)
6+
- [Getting Started](#getting-started)
7+
- [Load Testing](#load-testing)
8+
- [Exposing the Ingress Controller](#exposing-the-ingress-controller)
9+
- [Running the Minikube Service without Ingress](#running-the-minikube-service-without-ingress)
10+
- [GKE Instructions](#gke-instructions)
11+
312
## Prerequisites
413

514
- [**Minikube**](https://minikube.sigs.k8s.io/docs/)
615

7-
To run a local Kubernetes cluster, we
8-
recommend using Minikube on your local machine.
16+
To run a local Kubernetes cluster, we recommend using Minikube on your local machine.
917

1018
## Getting Started
1119

12-
1. Ensure that the Metrics Server add-on is enabled. Else, the autoscaling will not work.
20+
1. Ensure that the Metrics Server add-on is enabled. Else, the autoscaling and ingress will not work.
1321

1422
2. For Minikube:
1523

@@ -85,6 +93,16 @@
8593
kubectl apply -f ./k8s/ingress/06-nginx-ingress.yaml
8694
```
8795

96+
It should take a couple of minutes. Once done, you should run this command:
97+
98+
```sh
99+
kubectl -n peerprep get ingress
100+
101+
# You should see a similar output:
102+
# NAME CLASS HOSTS ADDRESS PORTS AGE
103+
# peerprep-ingress nginx peerprep-g16.net 172.17.0.15 80 38s
104+
```
105+
88106
3. Run the command to expose the ingress controller:
89107

90108
```sh
@@ -97,7 +115,20 @@
97115
127.0.0.1 peerprep-g16.net
98116
```
99117

100-
5. Visit `http://peerprep-g16.net` in your browser.
118+
5. If there is already an entry that points to `localhost`, comment it out temporarily.
119+
120+
```txt
121+
127.0.0.1 localhost # <- Comment this out, it should look like this ↙️
122+
123+
# 127.0.0.1 localhost
124+
127.0.0.1 peerprep-g16.net
125+
```
126+
127+
6. Visit `http://peerprep-g16.net` in your browser.
128+
129+
7. When done, reset your `/etc/hosts` file to its original state.
130+
131+
8. Run <kbd>Ctrl</kbd>+<kbd>C</kbd> on the **Minikube Tunnel** to stop it.
101132

102133
## Running the Minikube Service without Ingress
103134

@@ -114,3 +145,9 @@
114145
```
115146

116147
A browser window should launch, directing you to the application's frontend.
148+
149+
## GKE Instructions
150+
151+
To be added.
152+
153+
<!-- https://cert-manager.io/docs/tutorials/getting-started-with-cert-manager-on-google-kubernetes-engine-using-lets-encrypt-for-ingress-ssl/ -->

0 commit comments

Comments
 (0)