Example 13238
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "flight-worker"
namespace: "production"
labels: {
app: "scorpion"
tier: "backend"
}
}
# Deployment spec
spec: {
replicas: 4
container: {
image: "diversity:7.9.18"
port: 8080
resources: {
cpu_limit: "250m"
memory_limit: "512Mi"
}
}
health_check: {
path: "/health"
interval: 10
timeout: 5
}
}
}