Example 8538

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "allegation-worker"
namespace: "production"
labels: {
app: "information"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 3
container: {
image: "co-producer:0.10.13"
port: 3000
resources: {
cpu_limit: "500m"
memory_limit: "256Mi"
}
}

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

See also