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/frontend/deployment.yaml
Liam 498492bb91
Some checks failed
Deploy Backend / deploy (push) Failing after 27s
Deploy Website / deploy (push) Failing after 2m34s
deploy backend
2024-10-04 21:46:49 +01:00

55 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: scoresaber-reloaded-website
namespace: public-services
spec:
replicas: 1
selector:
matchLabels:
app: scoresaber-reloaded-website
template:
metadata:
labels:
app: scoresaber-reloaded-website
spec:
containers:
- name: scoresaber-reloaded-website-container
image: git.fascinated.cc/fascinated/scoresaber-reloaded-website:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
resources:
requests:
cpu: 50m
memory: 128Mi
limits:
cpu: 1000m # 1 vCPU
memory: 256Mi
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