add uptime-kuma

This commit is contained in:
Mans Ziesel 2024-10-31 15:43:36 +01:00
parent b462e0bdf7
commit 477405d61f
8 changed files with 98 additions and 0 deletions

View File

@ -0,0 +1,20 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: argo-app-uptime-kuma
namespace: argocd
spec:
destination:
name: ''
namespace: default
server: https://kubernetes.default.svc
source:
path: uptime-kuma
repoURL: https://git.mziesel.nl/mans/argocd-test
targetRevision: HEAD
sources: []
project: default
syncPolicy:
automated:
prune: true
selfHeal: true

View File

@ -17,3 +17,4 @@ resources:
- ./base/cloudnative-pg-application.yaml
- ./base/keycloak-application.yaml
- ./base/mediaserver-application.yaml
- ./base/uptime-kuma-application.yaml

View File

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

View File

@ -0,0 +1,12 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: uptime-kuma-ingressroute
spec:
routes:
- match: Host(`uptime-kuma.k8s.mziesel.nl`)
kind: Rule
services:
- name: uptime-kuma
port: web
tls: {}

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: uptime-kuma

View File

@ -0,0 +1,11 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: uptime-kuma-data-pvc
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: uptime-kuma
spec:
ports:
- name: web
port: 80
targetPort: web
selector:
app: uptime-kuma

View File

@ -0,0 +1,11 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: uptime-kuma
resources:
- ./base/uptime-kuma-namespace.yaml
- ./base/uptime-kuma-pvc.yaml
- ./base/uptime-kuma-deployment.yaml
- ./base/uptime-kuma-svc.yaml
- ./base/uptime-kuma-ingress.yaml