Example 15834

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "collaboration-api"
namespace: "production"
labels: {
app: "sediment"
tier: "backend"
}
}

# Deployment spec
spec: {
replicas: 2
container: {
image: "fen:3.20.9"
port: 3000
resources: {
cpu_limit: "1000m"
memory_limit: "512Mi"
}
}

health_check: {
path: "/health"
interval: 15
timeout: 3
}
}
}

See also