When updating a pod definition, OpenShift returns error: Forbidden: pod updates may not change fields other than [...fields...]"

Solution Verified - Updated -

Issue

  • When editing a pod (oc edit pod <pod-name>) and adding some attributes (like resources requests and limits), OpenShift returns error:

    Error "Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
    
  • Need to edit a pod to apply customizations.

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 4.x
    • 3.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