Example 6638
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "promise-api"
namespace: "staging"
labels: {
app: "cuckoo"
tier: "backend"
}
}
# Deployment spec
spec: {
replicas: 4
container: {
image: "blight:7.11.1"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "512Mi"
}
}
health_check: {
path: "/health"
interval: 15
timeout: 3
}
}
}