[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Get OpenShift API address



Not so much via _javascript_ as some kind of environment variable or some other info hidden somewhere (like the /var/run/kubernetes.io/serviceaccount stuff)

On Tue, Apr 4, 2017 at 2:37 PM, Aleksandar Lazic <aleks me2digital eu> wrote:
Hi.

Do I understand you right that you want to add the external URL into the template via _javascript_ on the webconsole?

I don't think that this is currently possible.

Maybe you find some hints on this page.

https://docs.openshift.org/latest/install_config/web_console_customization.html

Regards
Aleks

Tako Schotanus <tschotan redhat com> schrieb am 04.04.2017:
So I know you can use "openshift.default.svc.cluster.local" for accessing the OpenShift's console API internally from within a Pod.
We actually use that to create a new project for the same user, but now we want to redirect the user to that newly created project.
So my question is:

Is there a way to get the OpenShift console's _external_ IP/host from inside a Pod?

Right now we have to add a field to our template where we're basically telling the user: "could you look at the address bar of your browser and paste the hostname/IP-address you see there into this field?". Not very user-friendly :)

--

TAKO SCHOTANUS

SENIOR SOFTWARE ENGINEER

Red Hat 





users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users

---
Freundliche Grüße
Aleksandar Lazic - ME2Digital e. U.
https://me2digital.online/
UID-Nr.: ATU71765716
IBAN: AT27 1420 0200 1096 9086
Firmenbuch: 462678 i



--

TAKO SCHOTANUS

SENIOR SOFTWARE ENGINEER

Red Hat 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]