https://github.com/cbuschka/kind-eval
https://github.com/cbuschka/kind-eval
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cbuschka/kind-eval
- Owner: cbuschka
- Created: 2021-06-12T12:37:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-12T13:34:12.000Z (over 4 years ago)
- Last Synced: 2025-01-16T04:24:30.316Z (9 months ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# kind-eval
### Local k8s cluster setup based on kind with nginx ingress exposed on 0.0.0.0:80/:443
## Prerequisites
* linux
* gnu make
* docker## Usage
### Install and create cluster
```
make create
```### Deploy a hello service
```
make deploy
```### Show status
```
make status
```### Show logs
```
make logs
```### Access service
Open http://127.0.0.1:80/myhello### Run proxy (runs in foreground)
```
make proxy
```### Open dashboard
* Get a bearer token to login to dashboard
```
make get-dashboard-token
```Open ```http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/``` with your browser.
### Cleanup
```
make destroy
```## TODOs
* add letsencrypt support - https://www.digitalocean.com/community/tutorials/how-to-set-up-an-nginx-ingress-with-cert-manager-on-digitalocean-kubernetes
* namespace for app
* deployment via ssh and kind load image-archive## References
* Kind quickstart guide: https://kind.sigs.k8s.io/docs/user/quick-start
* Kind ingress config: https://kind.sigs.k8s.io/docs/user/ingress/
* Kind cluster config: https://kind.sigs.k8s.io/docs/user/configuration/#clusterwide-options
* Install dashboard: https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
* Dashboard auth: https://github.com/kubernetes/dashboard/blob/master/docs/user/access-control/creating-sample-user.md
* Deployment descriptor format: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
* Kubectl cheatsheet: https://kubernetes.io/docs/reference/kubectl/cheatsheet/#interacting-with-running-pods## License
MIT0