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"}]'