maestri-remote/k8s/deployment.yaml

74 lines
1.7 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: maestri-remote-relay
namespace: maestri-remote
labels:
app: maestri-remote
spec:
replicas: 1
minReadySeconds: 3
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
selector:
matchLabels:
app: maestri-remote
template:
metadata:
labels:
app: maestri-remote
spec:
terminationGracePeriodSeconds: 30
imagePullSecrets:
- name: dockerhub-key
containers:
- name: relay
image: winicomw/maestri-remote-relay:latest
imagePullPolicy: Always
ports:
- containerPort: 3000
name: http
protocol: TCP
env:
- name: NODE_OPTIONS
value: "--max-old-space-size=1536"
envFrom:
- secretRef:
name: litellm-config
- secretRef:
name: maestri-remote-auth
lifecycle:
preStop:
exec:
command: ["/bin/sh", "-c", "sleep 5"]
readinessProbe:
httpGet:
path: /api/health
port: 3000
scheme: HTTP
initialDelaySeconds: 2
periodSeconds: 2
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /api/health
port: 3000
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 4
resources:
limits:
cpu: 2000m
memory: 2Gi
requests:
cpu: 100m
memory: 128Mi