Skip to content

Instantly share code, notes, and snippets.

@rjhowe
Last active August 25, 2022 18:37
Show Gist options
  • Save rjhowe/e1b7827bc2a76cb6177f5a8442214434 to your computer and use it in GitHub Desktop.
Save rjhowe/e1b7827bc2a76cb6177f5a8442214434 to your computer and use it in GitHub Desktop.

4.8 +

# oc patch ingresscontroller default -n openshift-ingress-operator -p '[{"op": "add", "path": "/spec/tuningOptions/threadCount", "value" : 8}]' --type=json

4.7 and below

# cat <<EOF >version-patch-add-override.yaml
- op: add
  path: /spec/overrides
  value: []
- op: add
  path: /spec/overrides/-
  value:
    kind: Deployment
    name: ingress-operator
    group: operator.openshift.io
    namespace: openshift-ingress-operator
    unmanaged: true
EOF
     
# oc patch clusterversion version --type json -p "$(cat version-patch-add-override.yaml)"

# oc scale deployment --replicas=0 -n openshift-ingress-operator ingress-operator 
     
    The scale should delete the pod but if not:
    $ oc delete pod -n openshift-ingress-operator -l name=ingress-operator

# oc set env -n openshift-ingress deployment router-default ROUTER_THREADS=8 
# oc set  env  -n openshift-ingress  deployment router-default --list | grep -i threads
# oc get pods  -n openshift-ingress

--- To revert just run the following ---

# oc patch clusterversion version --type json -p '[{"op":"remove", "path":"/spec/overrides"}]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment