Skip to content

Commit 9414a9f

Browse files
prithvipatil97Prithviraj Patil
authored andcommitted
[OSDOCS-15295] Update nw-customize-ingress-error-pages.adoc
Command correction in Customizing HAProxy error code response pages Here is the documentation link: https://docs.redhat.com/en/documentation/openshift_container_platform/4.16/html/networking/networking-operators#nw-customize-ingress-error-pages_configuring-ingress Here is the current look: Procedure Create a config map named my-custom-error-code-pages in the openshift-config namespace: $ oc -n openshift-config create configmap my-custom-error-code-pages \ --from-file=error-page-503.http \ --from-file=error-page-404.http The above command is not structured properly. We can use the above command as well, and it will execute perfectly. But its structure is not as per our standard procedure. Hence, it needs to be changed. Here is the updatd look: Procedure Create a config map named my-custom-error-code-pages in the openshift-config namespace: $ oc -n openshift-config create configmap my-custom-error-code-pages \ --from-file=error-page-503.http \ --from-file=error-page-404.http [new-commit] Update nw-customize-ingress-error-pages.adoc [new-commit] Update nw-customize-ingress-error-pages.adoc
1 parent 7c266f7 commit 9414a9f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/nw-customize-ingress-error-pages.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ If you use the {product-title} default 503 error code page as a template for you
2727
[source,terminal]
2828
----
2929
$ oc -n openshift-config create configmap my-custom-error-code-pages \
30-
--from-file=error-page-503.http \
31-
--from-file=error-page-404.http
30+
--from-file=error-page-503.http \
31+
--from-file=error-page-404.http
3232
----
3333

3434
. Patch the Ingress Controller to reference the `my-custom-error-code-pages` config map by name:
@@ -79,7 +79,7 @@ Verify your custom error code HTTP response:
7979
+
8080
[source,terminal]
8181
----
82-
$ oc new-project test-ingress
82+
$ oc new-project test-ingress
8383
----
8484
+
8585
[source,terminal]

0 commit comments

Comments
 (0)