chore(foundryvtt): adjust service and ingress

This commit is contained in:
David Landry 2024-02-02 21:44:39 -05:00
parent 1a91f62ab3
commit 9fa7c454ee

View file

@ -10,8 +10,8 @@ spec:
app: foundryvtt app: foundryvtt
type: ClusterIP type: ClusterIP
ports: ports:
- port: 80 - port: 8080
targetPort: 8080 targetPort: http
protocol: TCP protocol: TCP
name: http name: http
--- ---
@ -26,6 +26,19 @@ spec:
replicas: 1 replicas: 1
template: template:
metadata: metadata:
annotations:
# gethomepage.dev/enabled: "true"
# gethomepage.dev/href: https://library.nc.landry.land
# gethomepage.dev/name: "FoundryVTT"
# gethomepage.dev/description: "Virtual-tabletop"
# gethomepage.dev/group: "Games"
# gethomepage.dev/icon: "foundryvtt.png"
traefik.enable: "true"
traefik.http.routers.foundryvtt.entrypoints: websecure
traefik.http.routers.foundryvtt.rule: Host(`foundryvtt.nc.landry.land`)
traefik.http.routers.foundryvtt.service: foundryvtt
traefik.http.routers.foundryvtt.tls.certresolver: leresolver
traefik.http.services.foundryvtt.loadbalancer.server.port: "8080"
labels: labels:
app: foundryvtt app: foundryvtt
spec: spec:
@ -81,3 +94,34 @@ spec:
requests: requests:
storage: 2Gi storage: 2Gi
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-issuer
gethomepage.dev/enabled: "true"
gethomepage.dev/name: "FoundryVTT"
gethomepage.dev/description: "Virtual-tabletop"
gethomepage.dev/group: "Games"
gethomepage.dev/icon: "foundryvtt.png"
name: foundryvtt
labels:
name: foundryvtt
spec:
rules:
- host: vtt.nc.landry.land
http:
paths:
- backend:
service:
name: foundryvtt
port:
number: 8080
path: /
pathType: Prefix
tls:
- hosts:
- library.nc.landry.land
secretName: foundryvtt-tls