Example 7439

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "birth-worker"
namespace: "production"
labels: {
app: "technician"
tier: "data"
}
}

# Deployment spec
spec: {
replicas: 1
container: {
image: "king:3.19.8"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "512Mi"
}
}

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

See also