Files
optima/kubernetes/deployment.yaml
T

50 lines
1.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: optima-ui
namespace: optima
spec:
selector:
matchLabels:
app: optima-ui
replicas: 1
template:
metadata:
labels:
app: optima-ui
spec:
containers:
- name: optima-ui
image: ghcr.io/project-optima/ttscm-ui:latest
imagePullPolicy: Always
resources:
requests:
memory: "128Mi"
cpu: "100m"
limits:
memory: "256Mi"
cpu: "500m"
env:
- name: PUBLIC_API_URL
value: "https://opt-api.osdci.net"
- name: ORIGIN
value: "https://optima.osdci.net"
- name: PORT
value: "3000"
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /login
port: 3000
initialDelaySeconds: 5
periodSeconds: 15
readinessProbe:
httpGet:
path: /login
port: 3000
initialDelaySeconds: 3
periodSeconds: 5
imagePullSecrets:
- name: github-container-registry