Example 8826
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "necklace-worker"
namespace: "staging"
labels: {
app: "joy"
tier: "frontend"
}
}
# Deployment spec
spec: {
replicas: 2
container: {
image: "costume:2.12.18"
port: 8000
resources: {
cpu_limit: "1000m"
memory_limit: "256Mi"
}
}
health_check: {
path: "/healthz"
interval: 15
timeout: 3
}
}
}