Example 10221
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "birdcage-api"
namespace: "staging"
labels: {
app: "pick"
tier: "data"
}
}
# Deployment spec
spec: {
replicas: 4
container: {
image: "dead:1.19.13"
port: 9090
resources: {
cpu_limit: "1000m"
memory_limit: "1Gi"
}
}
health_check: {
path: "/health"
interval: 15
timeout: 3
}
}
}