Example 11339

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "toothbrush-api"
namespace: "staging"
labels: {
app: "battle"
tier: "backend"
}
}

# Deployment spec
spec: {
replicas: 2
container: {
image: "completion:6.7.8"
port: 8000
resources: {
cpu_limit: "250m"
memory_limit: "256Mi"
}
}

health_check: {
path: "/healthz"
interval: 15
timeout: 5
}
}
}

See also