Add Uptime Kuma Kubernetes deployment + FluxCD GitRepository

This commit is contained in:
Kenpat7177 2026-06-05 21:27:28 -05:00
parent b08c1e51c4
commit 74547eb344
2 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,13 @@
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: GitRepository
metadata:
name: uptime-kuma-repo
namespace: flux-system
spec:
interval: 1m
url: https://gitforge.kitestacks.com/kenpat/docker
ref:
branch: master
secretRef:
name: forgejo-access

View file

@ -0,0 +1,59 @@
apiVersion: v1
kind: Namespace
metadata:
name: monitoring
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: uptime-kuma-pvc
namespace: monitoring
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: uptime-kuma
namespace: monitoring
spec:
replicas: 1
selector:
matchLabels:
app: uptime-kuma
template:
metadata:
labels:
app: uptime-kuma
spec:
containers:
- name: uptime-kuma
image: louislam/uptime-kuma:latest
ports:
- containerPort: 3001
volumeMounts:
- name: kuma-data
mountPath: /app/data
volumes:
- name: kuma-data
persistentVolumeClaim:
claimName: uptime-kuma-pvc
---
apiVersion: v1
kind: Service
metadata:
name: uptime-kuma
namespace: monitoring
spec:
type: NodePort
selector:
app: uptime-kuma
ports:
- protocol: TCP
port: 3001
targetPort: 3001