1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #33482 from openshift-cherrypick-robot/cherry-pick-32924-to-enterprise-4.8

[enterprise-4.8] OSDOCS:998 declarative configs for NE
This commit is contained in:
Vikram Goyal
2021-06-16 07:57:56 +10:00
committed by GitHub
4 changed files with 64 additions and 3 deletions

View File

@@ -39,3 +39,16 @@ Enable HTTP/2 on the entire cluster.
----
$ oc annotate ingresses.config/cluster ingress.operator.openshift.io/default-enable-http2=true
----
+
[TIP]
====
You can alternatively apply the following YAML to add the annotation:
[source,yaml]
----
apiVersion: v1
kind: IngressController
metadata:
annotations:
ingress.operator.openshift.io/default-enable-http2: "true"
----
====

View File

@@ -82,6 +82,22 @@ $ oc get --namespace openshift-ingress-operator ingresscontrollers/default \
map[name:custom-certs-default]
----
+
[TIP]
====
You can alternatively apply the following YAML to set a custom default certificate:
[source,yaml]
----
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
name: default
namespace: openshift-ingress-operator
spec:
defaultCertificate:
name: custom-certs-default
----
====
+
The certificate secret name should match the value used to update the CR.
Once the IngressController CR has been modified, the Ingress Operator

View File

@@ -34,3 +34,19 @@ spec:
namespaceOwnership: InterNamespaceAllowed
...
----
+
[TIP]
====
You can alternatively apply the following YAML to configure the route admission policy:
[source,yaml]
----
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
name: default
namespace: openshift-ingress-operator
spec:
routeAdmission:
namespaceOwnership: InterNamespaceAllowed
----
====

View File

@@ -10,6 +10,11 @@ availability requirements such as the requirement to increase throughput. `oc`
commands are used to scale the `IngressController` resource. The following
procedure provides an example for scaling up the default `IngressController`.
[NOTE]
====
Scaling is not an immediate action, as it takes time to create the desired number of replicas.
====
.Procedure
. View the current number of available replicas for the default `IngressController`:
+
@@ -52,8 +57,19 @@ $ oc get -n openshift-ingress-operator ingresscontrollers/default -o jsonpath='{
----
3
----
[NOTE]
+
[TIP]
====
Scaling is not an immediate action, as it takes time to create the desired number of replicas.
You can alternatively apply the following YAML to scale an Ingress Controller to three replicas:
[source,yaml]
----
apiVersion: operator.openshift.io/v1
kind: IngressController
metadata:
name: default
namespace: openshift-ingress-operator
spec:
replicas: 3 <1>
----
====
<1> If you need a different amount of replicas, change the `replicas` value.