This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
scoresaber-reloadedv3/deployment.yaml

67 lines
1.4 KiB
YAML
Raw Normal View History

2024-09-24 02:39:02 +00:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: scoresaber-reloaded
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: scoresaber-reloaded
template:
metadata:
labels:
app: scoresaber-reloaded
spec:
containers:
- name: scoresaber-reloaded-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded:latest
alwaysPullImage: true
securityContext:
allowPrivilegeEscalation: false
ports:
- containerPort: 3000
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 1000m # 1 vCPU
memory: 200Mi
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: scoresaber-reloaded-ingress
namespace: public-services
annotations:
kubernetes.io/ingress.class: traefik-external
spec:
entryPoints:
- websecure
routes:
- match: Host(`ssr-staging.fascinated.cc`)
kind: Rule
middlewares:
- name: default-headers
namespace: traefik
services:
- name: scoresaber-reloaded-service
port: 3000
tls:
secretName: fascinated-cc
---
apiVersion: v1
kind: Service
metadata:
name: scoresaber-reloaded-service
namespace: public-services
spec:
type: ClusterIP
ports:
- port: 3000
targetPort: 3000
selector:
app: scoresaber-reloaded