chore(foundryvtt): adjust service and ingress
This commit is contained in:
parent
1a91f62ab3
commit
9fa7c454ee
1 changed files with 75 additions and 31 deletions
|
|
@ -10,10 +10,10 @@ 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
|
||||||
---
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
|
|
@ -26,38 +26,51 @@ 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:
|
||||||
containers:
|
containers:
|
||||||
- name: foundryvtt
|
- name: foundryvtt
|
||||||
image: pgschk/foundryvtt-containerized:latest
|
image: pgschk/foundryvtt-containerized:latest
|
||||||
env:
|
env:
|
||||||
- name: FOUNDRYVTT_DOWNLOAD_URL
|
- name: FOUNDRYVTT_DOWNLOAD_URL
|
||||||
value: "https://foundryvtt.s3.amazonaws.com/releases/11.315/FoundryVTT-11.315-Setup.exe?AWSAccessKeyId=AKIA2KJE5YZ3BCQQ6DH3&Signature=HSnWSl09cJvf1aq5lVOQfRgEFOA%3D&Expires=1706927160"
|
value: "https://foundryvtt.s3.amazonaws.com/releases/11.315/FoundryVTT-11.315-Setup.exe?AWSAccessKeyId=AKIA2KJE5YZ3BCQQ6DH3&Signature=HSnWSl09cJvf1aq5lVOQfRgEFOA%3D&Expires=1706927160"
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: foundryvtt-data
|
- name: foundryvtt-data
|
||||||
mountPath: /data/foundryvtt
|
mountPath: /data/foundryvtt
|
||||||
- name: foundryvtt-install
|
- name: foundryvtt-install
|
||||||
mountPath: /usr/src/app/foundryvtt
|
mountPath: /usr/src/app/foundryvtt
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 150m
|
cpu: 150m
|
||||||
memory: 500Mi
|
memory: 500Mi
|
||||||
limits:
|
limits:
|
||||||
cpu: 1000m
|
cpu: 1000m
|
||||||
memory: 2000Mi
|
memory: 2000Mi
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
volumes:
|
volumes:
|
||||||
- name: foundryvtt-data
|
- name: foundryvtt-data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: foundryvtt-data
|
claimName: foundryvtt-data
|
||||||
- name: foundryvtt-install
|
- name: foundryvtt-install
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: foundryvtt-install
|
claimName: foundryvtt-install
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue