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/.gitea/kubernetes/deployment.yaml

55 lines
1.5 KiB
YAML
Raw Normal View History

2024-09-24 02:39:02 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
2024-10-04 17:25:37 +00:00
name: scoresaber-reloaded
2024-09-24 02:39:02 +00:00
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
2024-10-04 17:25:37 +00:00
app: scoresaber-reloaded
2024-09-24 02:39:02 +00:00
template:
metadata:
labels:
2024-10-04 17:25:37 +00:00
app: scoresaber-reloaded
2024-09-24 02:39:02 +00:00
spec:
containers:
2024-10-04 17:25:37 +00:00
- name: scoresaber-reloaded-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded:latest
2024-09-24 09:36:19 +00:00
imagePullPolicy: Always
2024-09-24 02:39:02 +00:00
ports:
- containerPort: 3000
resources:
requests:
cpu: 50m
2024-09-24 10:21:15 +00:00
memory: 128Mi
2024-09-24 02:39:02 +00:00
limits:
2024-09-24 10:37:08 +00:00
cpu: 1000m # 1 vCPU
memory: 256Mi
2024-09-28 04:57:35 +00:00
env:
- name: MONGO_URI
valueFrom:
secretKeyRef:
name: ssr-secret
key: MONGO_URI
- name: NEXT_PUBLIC_SITE_URL
valueFrom:
secretKeyRef:
name: ssr-secret
key: NEXT_PUBLIC_SITE_URL
- name: NEXT_PUBLIC_TRIGGER_PUBLIC_API_KEY
valueFrom:
secretKeyRef:
name: ssr-secret
key: NEXT_PUBLIC_TRIGGER_PUBLIC_API_KEY
- name: TRIGGER_API_KEY
valueFrom:
secretKeyRef:
name: ssr-secret
key: TRIGGER_API_KEY
- name: TRIGGER_API_URL
valueFrom:
secretKeyRef:
name: ssr-secret
key: TRIGGER_API_URL