Example 4825
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "sundae-worker"
namespace: "production"
labels: {
app: "mozzarella"
tier: "data"
}
}
# Deployment spec
spec: {
replicas: 5
container: {
image: "flu:4.3.0"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "256Mi"
}
}
health_check: {
path: "/ready"
interval: 30
timeout: 3
}
}
}