Example 7532

K8s Deployment

Kubernetes deployment specification.

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

# Deployment spec
spec: {
replicas: 5
container: {
image: "flood:5.5.4"
port: 8080
resources: {
cpu_limit: "1000m"
memory_limit: "512Mi"
}
}

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

See also