Prashant Sharma
06/13/2022, 8:08 AMJan Soubusta
06/13/2022, 10:32 AMPrashant Sharma
06/13/2022, 11:30 AMJan Soubusta
06/13/2022, 11:35 AMRobert Moucha
06/13/2022, 1:50 PMPrashant Sharma
06/13/2022, 3:20 PMRobert Moucha
06/13/2022, 9:22 PMA
record in your DNS). If the internal domain is resolvable to IP by users and the IP address is accessible, then accessing external domain will seamlessly translate the request to internal domain and then to its IP address. Web browser will pass the original external domain to Ingress controller within the Host:
header and GoodData.CN will recognize the Organization by this hostname. There's no need to explicitly enable the internal domain within Gooddata, unless you need your users to access it using the internal domain.
Example:
<http://external.domain.com|external.domain.com>. CNAME <http://internal.cloudflare.net|internal.cloudflare.net>.
<http://internal.cloudflare.net|internal.cloudflare.net>. A 10.20.30.40
Access to <https://external.domain.com/>
will work (assuming that this domain is defined as Organization's hostname) because browser will translate it to IP 10.20.30.40.
On the other hand, accessing <https://internal.cloudflare.net/>
will NOT work despite the fact the browser will access the very same IP address, but this hostname is not defined (and can not be defined) as a second hostname of the same organization.Prashant Sharma
06/20/2022, 9:18 AMRobert Moucha
06/20/2022, 2:09 PMOrganization
custom resource with spec.hostname set to external.domain.com, load it to kubernetes. Internal component called organization-controller will process the incoming Organization resource and creates its respective organization and Ingress (called managed-<<organization-id>>
, where organization-id is value from metadata.name.
Ingress controller is responsible for routing requests for this hostname to internal services. Based of the error message you sent, the Ingress routing works fine but the the organization's hostname is wrong in metadata-api component. It probably happened when you tried to change spec.hostname after creation of the Organization custom resource. This operation is not supported in version 1.7.2 and below, but will be supported in the upcoming 2.0.0 release. A workaround exists - delete Organization resource (kubectl delete org organization-id
), make sure the managed-<<organization-id>>
was removed, and create Organization again with a proper hostname (kubectl apply -f file-with-org-resource.yaml
).
Please let me know if it helped.Narinder Kumar
06/20/2022, 3:00 PMRobert Moucha
06/21/2022, 7:25 AM