How to scale the ingress `router` pod in OpenShift 4

Solution Verified - Updated -

Issue

  • Is it possible to change the number of replicas of the ingress router pod?
  • It is not working when editing the deployment/replicaset resources directly.

    $ oc edit deployment/router-default -n openshift-ingress
    <--snip-->
    spec:
      replicas: 2  -->  change to 3
    
    $ oc get -o yaml deployment/router-default -n openshift-ingress | grep replicas
      replicas: 2
    
    $ oc edit replicaset/router-default-587f757749 -n openshift-ingress
    <--snip-->
    spec:
      replicas: 2  -->  change to 3
    
    $ oc get -o yaml replicaset/router-default-587f757749 -n openshift-ingress | grep replicas
      replicas: 2
    

Environment

  • Red Hat OpenShift Container Platform
    • 4

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