Appearance
3130 - K8s Deployment
Kubernetes deployment specification. This is an example of a MAML document.
maml
{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "cow-worker"
namespace: "default"
labels: {
app: "scenario"
tier: "frontend"
}
}
# Deployment spec
spec: {
replicas: 2
container: {
image: "sarong:8.14.12"
port: 8080
resources: {
cpu_limit: "250m"
memory_limit: "1Gi"
}
}
health_check: {
path: "/ready"
interval: 10
timeout: 5
}
}
}