Skip to content

Commit 1259ec7

Browse files
[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
1 parent 7c266f7 commit 1259ec7

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:
@@ -84,7 +84,7 @@ Verify your custom error code HTTP response:
8484
+
8585
[source,terminal]
8686
----
87-
$ oc new-app django-psql-example
87+
$ oc new-app django-psql-example
8888
----
8989
9090
. For 503 custom http error code response:

0 commit comments

Comments
 (0)