Example 4736
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "equal-api"
namespace: "staging"
labels: {
app: "mentor"
tier: "data"
}
}
# Deployment spec
spec: {
replicas: 4
container: {
image: "sand:8.7.19"
port: 8000
resources: {
cpu_limit: "1000m"
memory_limit: "1Gi"
}
}
health_check: {
path: "/health"
interval: 15
timeout: 5
}
}
}