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 03:39:02 +01:00
apiVersion: apps/v1
kind: Deployment
metadata:
2024-10-04 21:09:04 +01:00
name: scoresaber-reloaded-website
2024-09-24 03:39:02 +01:00
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
2024-10-04 21:09:04 +01:00
app: scoresaber-reloaded-website
2024-09-24 03:39:02 +01:00
template:
metadata:
labels:
2024-10-04 21:09:04 +01:00
app: scoresaber-reloaded-website
2024-09-24 03:39:02 +01:00
spec:
containers:
2024-10-04 21:09:04 +01:00
- name: scoresaber-reloaded-website-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded-website:latest
2024-09-24 10:36:19 +01:00
imagePullPolicy: Always
2024-09-24 03:39:02 +01:00
ports:
- containerPort: 3000
resources:
requests:
cpu: 50m
2024-09-24 11:21:15 +01:00
memory: 128Mi
2024-09-24 03:39:02 +01:00
limits:
2024-09-24 11:37:08 +01:00
cpu: 1000m # 1 vCPU
memory: 256Mi
2024-09-28 05:57:35 +01: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