mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/ingress-operator.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-disable-http2_{context}"]
|
|
= Disabling HTTP/2
|
|
|
|
You can disable HTTP/2 on a specific Ingress Controller, or you can disable HTTP/2 for the entire cluster.
|
|
|
|
.Procedure
|
|
|
|
* To disable HTTP/2 on a specific Ingress Controller, enter the `oc annotate` command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n openshift-ingress-operator annotate ingresscontrollers/<ingresscontroller_name> ingress.operator.openshift.io/default-enable-http2=false <1>
|
|
----
|
|
+
|
|
<1> Replace `<ingresscontroller_name>` with the name of an Ingress Controller to disable HTTP/2.
|
|
|
|
* To disable HTTP/2 for the entire cluster, enter the `oc annotate` command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc annotate ingresses.config/cluster ingress.operator.openshift.io/default-enable-http2=false
|
|
----
|
|
|
|
[TIP]
|
|
====
|
|
Alternatively, you can apply the following YAML code to disable HTTP/2:
|
|
[source,yaml]
|
|
----
|
|
apiVersion: config.openshift.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: cluster
|
|
annotations:
|
|
ingress.operator.openshift.io/default-enable-http2: "false"
|
|
----
|
|
==== |