Appearance
829 - K8s Deployment
Kubernetes deployment specification. This is an example of a MAML document.
maml
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "depot-worker"
namespace: "default"
labels: {
app: "nectarine"
tier: "backend"
}
}
# Deployment spec
spec: {
replicas: 2
container: {
image: "joy:8.14.13"
port: 3000
resources: {
cpu_limit: "1000m"
memory_limit: "256Mi"
}
}
health_check: {
path: "/healthz"
interval: 30
timeout: 5
}
}
}