How to prevent an automatic spin up of the pod of a StatefulSet ?

Solution Verified - Updated -

Issue

  • Whenever a pod of a statefulset is deleted, a new pod will spin up on the assigned node as per the node-selector.
  • To temporarily prevent an automatic spin up of the pod on the node of a statefulset so that any maintenance can be done on the node.

Environment

  • Red Hat OpenShift Container Platform [OCP]
    • v3.11

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