Example 14440
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "cannon-worker"
namespace: "staging"
labels: {
app: "polarisation"
tier: "backend"
}
}
# Deployment spec
spec: {
replicas: 2
container: {
image: "harp:0.13.11"
port: 8000
resources: {
cpu_limit: "500m"
memory_limit: "1Gi"
}
}
health_check: {
path: "/health"
interval: 30
timeout: 5
}
}
}