Example 13123

K8s Deployment

Kubernetes deployment specification.

{
apiVersion: "apps/v1"
kind: "Deployment"
metadata: {
name: "porter-api"
namespace: "default"
labels: {
app: "orchid"
tier: "frontend"
}
}

# Deployment spec
spec: {
replicas: 2
container: {
image: "knickers:5.9.6"
port: 9090
resources: {
cpu_limit: "250m"
memory_limit: "1Gi"
}
}

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

See also