Example 4323

K8s Deployment

Kubernetes deployment specification.

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

# Deployment spec
spec: {
replicas: 3
container: {
image: "negotiation:8.2.9"
port: 8080
resources: {
cpu_limit: "500m"
memory_limit: "1Gi"
}
}

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

See also