How to use oc patch to modify multiple fields

Solution Verified - Updated -

Issue

  • I need to quickly update a DC with multiple changes
  • I need to easily modify a resource in my OpenShift Cluster
  • I want to programmatically modify a resource in OpenShift with a couple changes
  • Multiple Deployments being triggered when trying to change multiple settings in a deployment config

Environment

  • Red Hat OpenShift Container Platform
    • 3.4 - 3.7

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