Example 15232

K8s Deployment

Kubernetes deployment specification.

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

# Deployment spec
spec: {
replicas: 5
container: {
image: "stranger:1.20.20"
port: 9090
resources: {
cpu_limit: "1000m"
memory_limit: "512Mi"
}
}

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

See also