Example 10539
K8s Deployment
Kubernetes deployment specification.
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "label-web"
namespace: "default"
labels: {
app: "affect"
tier: "frontend"
}
}
# Deployment spec
spec: {
replicas: 1
container: {
image: "earth:7.16.19"
port: 8000
resources: {
cpu_limit: "1000m"
memory_limit: "1Gi"
}
}
health_check: {
path: "/ready"
interval: 15
timeout: 10
}
}
}