Merge pull request 'add ingress, pvc, svc and deployment for uptime kuma' (#269) from uptime-kuma into main
All checks were successful
Validate Kubernetes Manifests / kubeconform (push) Successful in 12s
All checks were successful
Validate Kubernetes Manifests / kubeconform (push) Successful in 12s
Reviewed-on: #269
This commit was merged in pull request #269.
This commit is contained in:
27
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-ingress.yml
Normal file
27
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-ingress.yml
Normal file
@@ -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
|
||||||
14
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-pvc.yml
Normal file
14
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-pvc.yml
Normal file
@@ -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
|
||||||
14
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-svc.yml
Normal file
14
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma-svc.yml
Normal file
@@ -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
|
||||||
28
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma.yml
Normal file
28
clusters/ipv6/monitoring/uptime-kuma/uptime-kuma.yml
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user