Files
models/k8s/deployment.yaml

63 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: models
namespace: hanzo
labels:
app: models
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
selector:
matchLabels:
app: models
template:
metadata:
labels:
app: models
spec:
imagePullSecrets:
- name: ghcr-secret
containers:
- name: models
image: ghcr.io/hanzoai/models:latest
ports:
- containerPort: 8080
envFrom:
- secretRef:
name: models-secrets
optional: true
livenessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /health
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
volumeMounts:
- name: data
mountPath: /app/data
- name: tmp
mountPath: /tmp
resources:
requests:
cpu: 50m
memory: 64Mi
limits:
cpu: 200m
memory: 128Mi
volumes:
- name: data
emptyDir: {}
- name: tmp
emptyDir: {}