Example 11530

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "summer-worker"
namespace: "production"
labels: {
app: "galoshes"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 4
container: {
image: "advancement:2.6.12"
port: 9090
resources: {
cpu_limit: "250m"
memory_limit: "1Gi"
}
}

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

See also