From 54822a69abb23ecd02ea7ccf41e41df430dce5d5 Mon Sep 17 00:00:00 2001 From: aggarwalakshun Date: Sun, 11 Jan 2026 11:08:59 +0530 Subject: [PATCH] add ingress, pvc, svc and deployment for uptime kuma --- .../uptime-kuma/uptime-kuma-ingress.yml | 27 ++++++++++++++++++ .../uptime-kuma/uptime-kuma-pvc.yml | 14 ++++++++++ .../uptime-kuma/uptime-kuma-svc.yml | 14 ++++++++++ .../monitoring/uptime-kuma/uptime-kuma.yml | 28 +++++++++++++++++++ 4 files changed, 83 insertions(+) create mode 100644 clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-ingress.yml create mode 100644 clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-pvc.yml create mode 100644 clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-svc.yml create mode 100644 clusters/ipv6/monitoring/uptime-kuma/uptime-kuma.yml diff --git a/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-ingress.yml b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-ingress.yml new file mode 100644 index 0000000..52a2bc8 --- /dev/null +++ b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-ingress.yml @@ -0,0 +1,27 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: uptime-kuma-ingress + namespace: monitoring + annotations: + cert-manager.io/cluster-issuer: letsencrypt-cloudflare + traefik.ingress.kubernetes.io/router.middlewares: tools-authelia@kubernetescrd + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + ingressClassName: traefik + tls: + - hosts: + - status.akshun-lab.cc + secretName: uptime-kuma-tls + rules: + - host: status.akshun-lab.cc + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: uptime-kuma-service + port: + number: 3001 diff --git a/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-pvc.yml b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-pvc.yml new file mode 100644 index 0000000..9c974ea --- /dev/null +++ b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-pvc.yml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: uptime-kuma-longhorn + namespace: monitoring +spec: + resources: + requests: + storage: 1Gi + volumeMode: Filesystem + accessModes: + - ReadWriteOnce + storageClassName: longhorn diff --git a/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-svc.yml b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-svc.yml new file mode 100644 index 0000000..e565023 --- /dev/null +++ b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-svc.yml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: uptime-kuma-service + namespace: monitoring +spec: + selector: + app: uptime-kuma + type: ClusterIP + ports: + - port: 3001 + targetPort: 3001 + name: http diff --git a/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma.yml b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma.yml new file mode 100644 index 0000000..845aacf --- /dev/null +++ b/clusters/ipv6/monitoring/uptime-kuma/uptime-kuma.yml @@ -0,0 +1,28 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: uptime-kuma + namespace: monitoring +spec: + selector: + matchLabels: + app: uptime-kuma + template: + metadata: + labels: + app: uptime-kuma + spec: + containers: + - name: uptime-kuma + image: louislam/uptime-kuma:2.0.2 + ports: + - containerPort: 3001 + name: http + volumeMounts: + - name: uptime-kuma-data + mountPath: /app/data + volumes: + - name: uptime-kuma-data + persistentVolumeClaim: + claimName: uptime-kuma-longhorn