add app uptime-kuma

This commit is contained in:
2024-07-17 17:39:22 +10:00
parent 68c7589898
commit e2de2ee147
5 changed files with 76 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: uptime-kuma
namespace: uptime-kuma
labels:
app.kubernetes.io/name: uptime-kuma
spec:
selector:
matchLabels:
app.kubernetes.io/name: uptime-kuma
template:
metadata:
labels:
app.kubernetes.io/name: uptime-kuma
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
containers:
- name: uptime-kuma
image: louislam/uptime-kuma:1.23.13
ports:
- protocol: TCP
containerPort: 3001
name: http
volumeMounts:
- name: data
mountPath: /app/data
volumes:
- name: assets
hostPath:
path: /mnt/nfs/AppData/homer/www/assets
type: Directory

View File

@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./deployment.yaml

View File

@@ -0,0 +1,12 @@
{
"appName": "uptime-kuma",
"userGivenName": "uptime-kuma",
"namespace": "uptime-kuma",
"destNamespace": "uptime-kuma",
"destServer": "https://kubernetes.default.svc",
"srcPath": "apps/uptime-kuma/env/k3s-cluster",
"srcRepoURL": "https://github.com/3dwardch3ng/home-cluster-ops.git",
"srcTargetRevision": "",
"labels": null,
"annotations": null
}

View File

@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: uptime-kuma-ingress
namespace: uptime-kuma
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- host: "uptime-kuma.cluster.edward.sydney"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: uptime-kuma
port:
number: 3001

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base
- ./ingress.yaml