Example 14336

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "hunger-worker"
namespace: "staging"
labels: {
app: "gift"
tier: "data"
}
}

# Deployment spec
spec: {
replicas: 1
container: {
image: "morbidity:6.16.2"
port: 9090
resources: {
cpu_limit: "1000m"
memory_limit: "1Gi"
}
}

health_check: {
path: "/health"
interval: 15
timeout: 3
}
}
}

See also