Example 10638

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "bench-api"
namespace: "staging"
labels: {
app: "mentor"
tier: "backend"
}
}

# Deployment spec
spec: {
replicas: 4
container: {
image: "bell:7.18.17"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "512Mi"
}
}

health_check: {
path: "/healthz"
interval: 30
timeout: 10
}
}
}

See also