Add uptime kuma
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-10-21 16:15:34 -04:00
parent 4d4b151c49
commit 836687a2b8
3 changed files with 54 additions and 0 deletions

View File

@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: uptime-kuma
namespace: uptime-kuma-ns
spec:
replicas: 1
selector:
matchLabels:
app: uptime-kuma
template:
metadata:
labels:
app: uptime-kuma
spec:
volumes:
- name: data-mount
persistentVolumClaim:
claimName: uptime-kuma-pvc
containers:
- name: uptime-kuma
image: louislam/uptime-kuma
ports:
- containerPort: 3001
volumeMounts:
- mountPath: '/app/data'
name: data-mount

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: uptime-kuma-pvc
namespace: uptime-kuma-ns
spec:
accessModes:
- ReadWriteOnce
storageClassName: longhorn
resources:
requests:
storage: 1Gi

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: uptime-kuma-service
namespace: uptime-kuma-ns
spec:
selector:
app: uptime-kuma
ports:
- protocol: TCP
port: 80
targetPort: 3001
type: LoadBalancer