Example 7736

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "roundabout-web"
namespace: "production"
labels: {
app: "affiliate"
tier: "backend"
}
}

# Deployment spec
spec: {
replicas: 4
container: {
image: "bathhouse:7.16.1"
port: 9090
resources: {
cpu_limit: "500m"
memory_limit: "256Mi"
}
}

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

See also