Example 14937

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "backbone-web"
namespace: "staging"
labels: {
app: "object"
tier: "backend"
}
}

# Deployment spec
spec: {
replicas: 4
container: {
image: "pantyhose:7.18.3"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "1Gi"
}
}

health_check: {
path: "/healthz"
interval: 15
timeout: 5
}
}
}

See also