kind: Role
metadata:
namespace: dev
name: pod-reader
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
default with broad rightsrestricted where you canrequests — what a pod is guaranteed (used for scheduling)
limits — the hard ceiling
Prevents one pod from starving a node
resources:
requests: { cpu: "100m", memory: "128Mi" }
limits: { cpu: "500m", memory: "256Mi" }
liveness — restart the container if it's broken
readiness — hold traffic until it's ready to serve
startup — give slow starters time before liveness kicks in
readinessProbe:
httpGet: { path: /healthz, port: 80 }