Example 6032
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "carnival-api"
namespace: "staging"
labels: {
app: "plumber"
tier: "backend"
}
}
# Deployment spec
spec: {
replicas: 1
container: {
image: "chops:2.17.15"
port: 9090
resources: {
cpu_limit: "500m"
memory_limit: "1Gi"
}
}
health_check: {
path: "/healthz"
interval: 10
timeout: 5
}
}
}