Example 16637

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "dish-api"
namespace: "staging"
labels: {
app: "responsibility"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 4
container: {
image: "halt:2.7.12"
port: 9090
resources: {
cpu_limit: "500m"
memory_limit: "512Mi"
}
}

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

See also