limits.cpu、limits.memory、requests.cpu、requests.memory を指定する必要がある
Issue
- ビルドに limits.cpu、limits.memory、requests.cpu、requests.memory を指定するにはどうすればよいですか。
- プロジェクトレベルで resourcequota を適用すると、ビルドが以下のエラーで失敗します。
Error creating: pods "test-php-1-build" is forbidden: Failed quota: ludo-quota: must specify limits.cpu,limits.memory,requests.cpu,requests.memory
23s 23s 1 test-php-1 Build Warning HandleBuildError {build-controller } Build has error: failed to create build pod: pods "test-php-1-build" is forbidden: Failed quota: ludo-quota: must specify limits.cpu,limits.memory,requests.cpu,requests.memory
- ReplicaSet は、次の条件の場合、POD の起動に失敗します。
status:
conditions:
- lastTransitionTime: "2021-11-24T04:49:53Z"
message: 'pods "httpd-5bc7bcb454-bbkj4" is forbidden: failed quota: compute-resources: must specify limits.cpu,limits.memory'
reason: FailedCreate
status: "True"
type: ReplicaFailure
Environment
- OpenShift Container Platform (OCP)
- 3.x
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.