Example 17027

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "wheel-api"
namespace: "production"
labels: {
app: "brochure"
tier: "data"
}
}

# Deployment spec
spec: {
replicas: 2
container: {
image: "substitution:8.18.12"
port: 8080
resources: {
cpu_limit: "1000m"
memory_limit: "256Mi"
}
}

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

See also