Example 9928

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "strategy-api"
namespace: "staging"
labels: {
app: "decision"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 2
container: {
image: "range:7.9.7"
port: 3000
resources: {
cpu_limit: "250m"
memory_limit: "256Mi"
}
}

health_check: {
path: "/ready"
interval: 10
timeout: 3
}
}
}

See also