1
0
Fork 0
home-stack-kustomize/README.md

58 lines
2.3 KiB
Markdown
Raw Normal View History

2021-08-27 20:20:03 +00:00
# home-stack-kustomize
Kubernetes deployment for home cluster.
## Deploying
Deployments are done through a `Makefile`.
2021-08-27 20:20:03 +00:00
Prerequisites:
* make
* terraform
* kustomize
2021-08-27 20:20:03 +00:00
* kubectl
* highlight (for prettying `diff`)
### Prod deployment
#### infra
``` sh
make infra
```
2021-08-27 20:20:03 +00:00
This will:
1. Configure external-secret to be able to sync kubernetes secrets with the secret store in AWS.
2. Configure the DNS entries in DigitalOcean
2021-08-27 20:21:04 +00:00
#### diff
2021-08-27 20:20:03 +00:00
``` sh
make
```
*or*
``` sh
make prod-diff
2021-08-27 20:20:03 +00:00
```
Generated kubernetes manifest will be in [./build/prod.yaml](./build/prod.yaml).
#### apply
2021-08-27 20:20:03 +00:00
``` sh
make prod-apply
2021-08-27 20:20:03 +00:00
```
Generated kubernetes manifest will be in [./build/prod.yaml](./build/prod.yaml).
Server-side resources that are not declared in the manifest will be pruned.
2021-08-27 20:20:03 +00:00
## Services
| service | local | prod |
| ------------------------------------------------------------------------ | ------------------------------------- | ----------------------------------------- |
2021-08-27 20:21:04 +00:00
| [kubernetes-dashboard](https://github.com/kubernetes/dashboard/releases) | http://kubernetes-dashboard.localhost | https://kubernetes-dashboard.badjnet.home |
2021-08-27 20:20:03 +00:00
| [traefik](https://github.com/traefik/traefik) | http://traefik.localhost/dashboard/ | https://traefik.badjnet.home/dashboard/ |
| [longhorn](https://github.com/longhorn/longhorn) | | https://longhorn.badjnet.home |
| [grafana](https://github.com/grafana/grafana) | http://grafana.localhost | https://grafana.badjnet.home |
| [prometheus](https://github.com/prometheus/prometheus) | http://prometheus.localhost | https://prometheus.badjnet.home |
| [gitea](https://github.com/go-gitea/gitea) | http://gitea.localhost | https://gitea.badjware.dev |
| [drone](https://github.com/drone/drone) | http://drone.localhost | https://drone.badjware.dev |
| [nextcloud](https://github.com/nextcloud/server) | http://nextcloud.localhost | https://cloud.badjware.dev |