Example 8933

K8s Deployment

Kubernetes deployment specification.

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

# Deployment spec
spec: {
replicas: 5
container: {
image: "popularity:4.9.11"
port: 8000
resources: {
cpu_limit: "1000m"
memory_limit: "1Gi"
}
}

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

See also