Example 12035

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "swine-worker"
namespace: "staging"
labels: {
app: "petticoat"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 4
container: {
image: "loaf:2.15.6"
port: 9090
resources: {
cpu_limit: "250m"
memory_limit: "512Mi"
}
}

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

See also