drogue-iot / drogue-cloud

Cloud Native IoT
https://drogue.io
Apache License 2.0
113 stars 30 forks source link

[kind] drgadm examples feedback #191

Closed jbtrystram closed 2 years ago

jbtrystram commented 2 years ago
drogue-install-kind-0.8.0-rc1/scripts/drgadm examples                                                                               

==========================================================================================
 Base
==========================================================================================

Single sign-on:
  URL:      
  User:     admin
  Password: admin123456

Console: http://console.172.20.0.2.nip.io

The "URL"field is empty.

------------------------------------------------------------------------------------------
Examples
------------------------------------------------------------------------------------------

View the example dashboard:
----------------------------

* Login to Grafana (using SSO): grafana.172.20.0.2.nip.io
* Search for the 'Examples' dashboard

the grafana URL is missing the protocol. That makes it non-clickable in my terminal. Value should be http://grafana...



The rest is fine :) 
jbtrystram commented 2 years ago

Investigating for the missing SSO URL led me to find that the SSO URL is not correctly set up in the YAML charts. truncated output of kubectl -n drogue-iot get deploy/console-backend -o json

                            {
                                "name": "ENDPOINTS__API_URL",
                                "value": "http://api.172.20.0.2.nip.io"
                            },
                            {
                                "name": "ENDPOINTS__SSO_URL",
                                "value": "$(SSO_URL)"
                            },
                            {
                                "name": "ENDPOINTS__CONSOLE_URL",
                                "value": "http://console.172.20.0.2.nip.io"
                            },
ctron commented 2 years ago

Using $(SSO_URL) should be fine, as this is being use from the environment of the pod itself

ctron commented 2 years ago

But it looks like we don't populate that in the _endpoints.sh script