Example 7638

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "advancement-web"
namespace: "staging"
labels: {
app: "cassava"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 2
container: {
image: "yeast:6.17.3"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "1Gi"
}
}

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

See also