uptime-kuma/kubernetes/README.md

33 lines
1.5 KiB
Markdown
Raw Normal View History

2021-08-18 01:38:05 -07:00
# Uptime-Kuma K8s Deployment
2021-09-10 07:03:28 -07:00
⚠ Warning: K8s deployment is provided by contributors. I have no experience with K8s and I can't fix error in the future. I only test Docker and Node.js. Use at your own risk.
2021-08-18 01:38:05 -07:00
## How does it work?
Kustomize is a tool which builds a complete deployment file for all config elements.
You can edit the files in the ```uptime-kuma``` folder except the ```kustomization.yml``` until you know what you're doing.
2021-08-19 04:50:05 -07:00
If you want to choose another namespace you can edit the ```kustomization.yml``` in the ```kubernetes```-Folder and change the ```namespace: uptime-kuma``` to something you like.
2021-08-18 01:38:05 -07:00
2021-09-12 10:39:28 -07:00
It creates a certificate with the specified Issuer and creates the Ingress for the Uptime-Kuma ClusterIP-Service.
## What do I have to edit?
2021-08-18 01:38:05 -07:00
You have to edit the ```ingressroute.yml``` to your needs.
This ingressroute.yml is for the [nginx-ingress-controller](https://kubernetes.github.io/ingress-nginx/) in combination with the [cert-manager](https://cert-manager.io/).
2021-09-12 10:39:28 -07:00
- Host
- Secrets and secret names
2021-08-18 01:38:05 -07:00
- (Cluster)Issuer (optional)
2021-09-12 10:39:28 -07:00
- The Version in the Deployment-File
- Update:
- Change to newer version and run the above commands, it will update the pods one after another
2021-08-18 01:38:05 -07:00
2021-09-12 10:39:28 -07:00
## How To use
2021-08-18 01:38:05 -07:00
2021-09-12 10:39:28 -07:00
- Install [kustomize](https://kubectl.docs.kubernetes.io/installation/kustomize/)
2021-08-18 01:38:05 -07:00
- Edit files mentioned above to your needs
2021-09-12 10:39:28 -07:00
- Run ```kustomize build > apply.yml```
- Run ```kubectl apply -f apply.yml```
2021-08-18 01:38:05 -07:00
2021-09-10 07:03:28 -07:00
Now you should see some k8s magic and Uptime-Kuma should be available at the specified address.