Translated message

A translation of this page exists in English.

limits.cpu、limits.memory、requests.cpu、requests.memory を指定する必要がある

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content