Example 8823

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "premeditation-api"
namespace: "default"
labels: {
app: "skyscraper"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 3
container: {
image: "privilege:0.19.12"
port: 3000
resources: {
cpu_limit: "1000m"
memory_limit: "256Mi"
}
}

health_check: {
path: "/health"
interval: 30
timeout: 10
}
}
}

See also