Example 10130

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "cuckoo-api"
namespace: "staging"
labels: {
app: "sonnet"
tier: "data"
}
}

# Deployment spec
spec: {
replicas: 3
container: {
image: "angle:0.17.18"
port: 8000
resources: {
cpu_limit: "500m"
memory_limit: "1Gi"
}
}

health_check: {
path: "/healthz"
interval: 30
timeout: 3
}
}
}

See also