k8wiz
Kubernetes
Medium
Troubleshooting

A Deployment wants 5 replicas but only 3 Pods exist and none is Pending. Where does a ResourceQuota rejection show up?

Select your answer:

Show answer and explanation

Answer: As a FailedCreate event on the ReplicaSet

Explanation

ResourceQuota is enforced by an admission plugin, so the API server rejects the Pod create request and no Pod object ever exists. The ReplicaSet controller made that request, and it records a FailedCreate event with a message like 'Error creating: pods "web-6f7d9c8b5-" is forbidden: exceeded quota: ...'. The scheduler never sees the Pod, so there is no FailedScheduling event.

Read more about Kubernetes