{"id":130,"date":"2024-03-20T18:06:15","date_gmt":"2024-03-20T10:06:15","guid":{"rendered":"https:\/\/blog.bijiafeng.com\/?p=130"},"modified":"2024-07-12T12:02:22","modified_gmt":"2024-07-12T04:02:22","slug":"openshift-customizing-the-console-route","status":"publish","type":"post","link":"https:\/\/blog.bijiafeng.com\/?p=130","title":{"rendered":"Openshift Customizing the console route"},"content":{"rendered":"\n<p>Edit the cluster&nbsp;<code>Ingress<\/code>&nbsp;configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oc edit ingress.config.openshift.io cluster<\/code><\/pre>\n\n\n\n<p>Set the custom hostname and optionally the serving certificate and key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: config.openshift.io\/v1\nkind: Ingress\nmetadata:\n  name: cluster\nspec:\n  componentRoutes:\n    - name: console\n      namespace: openshift-console\n      hostname: &lt;custom_hostname&gt; \n      servingCertKeyPairSecret:\n        name: &lt;secret_name&gt; <\/code><\/pre>\n\n\n\n<p>Or Apply new Ingress Config<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apiVersion: config.openshift.io\/v1\nkind: Ingress\nmetadata:\n  name: cluster\nspec:\n  componentRoutes:\n    - name: console\n      namespace: openshift-console\n      hostname: OpenShift.Meaty.Cloud\n      servingCertKeyPairSecret:\n        name: custom-console-certificate<\/code><\/pre>\n\n\n\n<p>Example YAML file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\napiVersion: config.openshift.io\/v1\nkind: Ingress\nmetadata:\n  name: cluster\n\nspec:\n  componentRoutes:\n  - hostname: console.apps.oscp.abc.local\n    name: console\n    namespace: openshift-console\n  domain: apps.oscp.abc.local\n  loadBalancer:\n    platform:\n      type: \"\"\nstatus:\n  componentRoutes:\n  - conditions:\n\n    - lastTransitionTime: \"2024-03-15T11:24:42Z\"\n      message: All is well\n      reason: AsExpected\n      status: \"False\"\n      type: Degraded\n<\/code><\/pre>\n\n\n\n<p><a href=\"https:\/\/meatybytes.io\/posts\/openshift\/ocp-features\/security\/tls\/customizing-console\">https:\/\/meatybytes.io\/posts\/openshift\/ocp-features\/security\/tls\/customizing-console<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/docs.openshift.com\/container-platform\/4.15\/web_console\/customizing-the-web-console.html#customizing-the-web-console-url_customizing-web-console\">https:\/\/docs.openshift.com\/container-platform\/4.15\/web_console\/customizing-the-web-console.html#customizing-the-web-console-url_customizing-web-console<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit the cluster&nbsp;Ingress&nbsp;configuration: Set the custom hostname and optionally the serving certificate and key: Or Apply new Ingress Config Example YAML file https:\/\/meatybytes.io\/posts\/openshift\/ocp-features\/security\/tls\/customizing-console https:\/\/docs.openshift.com\/container-platform\/4.15\/web_console\/customizing-the-web-console.html#customizing-the-web-console-url_customizing-web-console<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-openshift"],"_links":{"self":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=130"}],"version-history":[{"count":3,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=\/wp\/v2\/posts\/130\/revisions\/166"}],"wp:attachment":[{"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bijiafeng.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}