Example 4839

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "ravioli-worker"
namespace: "staging"
labels: {
app: "disposer"
tier: "backend"
}
}

# Deployment spec
spec: {
replicas: 5
container: {
image: "coordination:6.15.12"
port: 3000
resources: {
cpu_limit: "250m"
memory_limit: "1Gi"
}
}

health_check: {
path: "/healthz"
interval: 15
timeout: 5
}
}
}

See also