Add ente-web

This commit is contained in:
Ruben Hensen
2024-09-12 18:58:49 +02:00
parent a6e27a97c5
commit 78d98ab11c
3 changed files with 64 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: ente-web
labels:
app: ente-web
# docker run -d --restart=always -p 3001:3001 -v uptime-kuma:/app/data --name uptime-kuma louislam/uptime-kuma:1
spec:
replicas: 1
selector:
matchLabels:
app: ente-web
template:
metadata:
labels:
app: ente-web
spec:
containers:
- name: ente-web
image: hebury/ente-web:latest
+33
View File
@@ -0,0 +1,33 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ente-web-ingress
annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /
cert-manager.io/cluster-issuer: prod-cluster-issuer
nginx.ingress.kubernetes.io/ssl-passthrough: "true"
# If you encounter a redirect loop or are getting a 307 response code
# then you need to force the nginx ingress to connect to the backend using HTTPS.
#
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
namespace: ente-photos
spec:
ingressClassName: nginx
rules:
- host: ente.hensen.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: ente-service
port:
name: "https"
# TLS configuration for HTTPS
tls:
# TLS secretName used on ClusterIssuer
- secretName: letsencrypt-prod2
hosts:
- ente.hensen.io
+11
View File
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: ente-web-service
spec:
ports:
- name: https
port: 443
targetPort: 3000
selector:
app: ente-web