OpenShift/OKD cluster - Use with external/outside domain #716
Replies: 9 comments 28 replies
-
I believe you can customize the console route in 4.6 And I think the functionality that youre describing is in the pipeline: |
Beta Was this translation helpful? Give feedback.
-
From google group for OKD ("[email protected]")
|
Beta Was this translation helpful? Give feedback.
-
For some reason this works...
It could be a clue. [Ref(s).: http://5.9.10.113/55655089/openshift-and-istio-gateway-traffic-configuration-in-order-to-access-from-a-doma ] |
Beta Was this translation helpful? Give feedback.
-
It looks like if you do not provide secret-name is created with:
where once you get that completed the console operator will create a new route: Initial State
Without secret
With secret
|
Beta Was this translation helpful? Give feedback.
-
Just to consolidate the information provided by @LorbusChris... The link JoinBuildFarm.md: Add info about secure route exposal is an unapproved merge request...
This is the md (complete file) with the changes Join Build Farm . Observe the Secure and expose routes section. Very good! I believe it will help! |
Beta Was this translation helpful? Give feedback.
-
Below is a complete script to customizing the 'Web Console" URL... The purpose of this post is to consolidate everyone's contributions into one answer. Thank's guys! =D Adjust the OKD cluster's internal DNS according to the templates... NOTE: These models and examples are compatible with the DNS BIND 9. Adjust to your reality. Define a new DNS zone configuration... MODEL
EXAMPLE
Configure the DNS to consume the new zone... MODEL
EXAMPLE
Create a self-signed SSL certificate (for your LAN)... MODEL
EXAMPLE
[Ref(s).: https://stackoverflow.com/questions/10175812/how-to-generate-a-self-signed-ssl-certificate-using-openssl , Create a new secret for your new "Web Console" domain... MODEL
EXAMPLE
Configure your cluster to use your new "Web Console" domain...
MODEL
EXAMPLE
[Ref(s).: https://docs.openshift.com/container-platform/4.6/web_console/customizing-the-web-console.html#customizing-the-web-console-url_customizing-web-console ] TIPS: Show "openshift-console" routes...
Test the new route...
Check original route...
NOTE: The "console-openshift-console.apps" value is a "standard" and the "mbr.okdint.dm" value is arbitrary. Then adjust the above route to your original settings. NOTE: The expected output for the above command is: Done! =D |
Beta Was this translation helpful? Give feedback.
-
I can now access the Web Console using the new domain (in this case "mydomain.net") and login using the procedures presented by you. However, I noticed that several other routes were not made available for the new domain "mydomain.net" (see command below), especially the routes...
... which are links accessible from the Web Console itself
QUESTION: How did you solve these cases? Thanks! =D |
Beta Was this translation helpful? Give feedback.
-
The purpose of this post is consolidate all procedures needed to provide (to try...) access to OpenShift (OKD)'s Web components (especially the Web Console) from a domain different from its internal domain (base domain/installation domain). []'s Hi people! Greetings! =D Here is a new way to access OpenShift (OKD)'s Web components (especially the Web Console) from a domain different from its internal domain (base domain/installation domain). There is only one small detail to make it 100%. I think this may be interesting for you, so please take a look! In the procedure described here I achieved successful login on a new URL (new domain) made available for the "oauth-openshift" resource and I was also able to normally use all other Web resources in new URLs (same new domain). The only problem is that the Web Console and its components ("alertmanager", "grafana", "prometheus", etc) always redirect to the OLD "oauth-openshift"'s URL when login is required, so we have to adjust the domain manually every time. To solve this we just need to make the Web resources ("console", "alertmanager", "grafana", "prometheus", etc) redirect to the new URL and not to the old one. Note that I didn't change the baseDomain I just changed its routes. As you can see, its has been proven that login to web applications can occur from a domain other than the baseDomain. I believe that the effort you would (dev team) have to expend to allow this would be minimal. Its could be a new feature for OpenShift (OKD)! =D Anyway, I have to say it was a great effort to reach that answer... =D NOTE I: There is no other effective answer to this on the internet... I've tried every possible channel! PROCEDURES: I found all namespaces that have routes...
I found all the resources related to each namespace and took note of the route configuration paths...
In each route I updated the host (there are two) property to a new domain...
In other words, I modified something like this...
... to something like this...
In the case of route route.route.openshift.io/oauth-openshift, we will not change it. We will create a new route for its oauth-openshift resource. Open for editing (but we won't edit it) the route configuration for the oauth-openshift resource...
... , copy its content and edit the following properties according to your reality modifing from something like this...
... to something like this...
... and create the new route...
PROBLEM: The Web Console and its components ("alertmanager", "grafana", "prometheus", etc) always redirect to this URL...
... when login is required. NOTE: The "okd.local" is the cluster's base domain (installation). Is it possible to configure them to calling another URL? Like this URL below?
PLUS I: As I said in other spaces of our community, it is very common to have cases where the external domain (internet, WAN) of a company is different from its internal domain (private, LAN) or even cases where a company has several domains (eg: company.com , company.org, company.net...). So I say again that not being able to make web resources (especially the Web Console) work in a domain other than its internal domain is something that can become dramatic if we try to expose OpenShift (OKD) to external access (internet, WAN) a cluster already in use if its internal domain (eg: okd.local) has no external equivalent. PLUS II: Thanks! =D |
Beta Was this translation helpful? Give feedback.
-
Does anyone know if there are plans to implement features to allow access to OpenShift (OKD)'s Web components (especially the Web Console) from a different domain from its internal domain (base domain/installation domain)? If so, where can I follow this process? []'s to everyone! =D |
Beta Was this translation helpful? Give feedback.
-
I have an OpenShift/OKD cluster already up and running and using the following domain...
Within this domain I have these (among others) features working...
QUESTION: I own this other (external/outside) domain...
.... and I need the resources mentioned above to respond to it as below...
.
IMPORTANT: Our main difficulty these days is the Web Console because it doesn't use relative paths for its URLs. That is, its (absolute path) URLs are in the domain
certain.domain
and we can't find a simple way to make it use and consume the URLanother.domain
.Thanks! =D
Beta Was this translation helpful? Give feedback.
All reactions