You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A tododb service exists in your OpenShift project that connects to an external database. To obtain the FQDN of the external database, replace apps in your OpenShift cluster wildcard domain with mysql. For example, if the wildcard domain of your cluster is apps.cluster.domain.example.com, then the database FQDN is mysql.cluster.domain.example.com.
Thus taking my own lab as an example the mysql server would be at the url;
$ set | grep WILDCARD
RHT_OCP4_WILDCARD_DOMAIN=apps.eu46.prod.nextcle.com
$ MYSQL_DB=mysql.eu46.prod.nextcle.com
However this host then fails in the following mysql command
$ mysql -u -p -h${MYSQL_DB}
In the Solution element of the lab we see the command
MYSQL_DB=$(echo
mysql.ocp-${RHT_OCP4_WILDCARD_DOMAIN#"apps."})
Which adds a .ocp- element to the url. Once this is added the mysql command works. So the lab guide is in correct and should suggest to add msql.ocp-{your WILDCARD cluster domain (minus the apps )}
The text was updated successfully, but these errors were encountered:
The lab notes for Lab 8 - Lab: Building Cloud-Native Applications for OpenShift are incorrect. . The Lab states;
A tododb service exists in your OpenShift project that connects to an external database. To obtain the FQDN of the external database, replace apps in your OpenShift cluster wildcard domain with mysql. For example, if the wildcard domain of your cluster is apps.cluster.domain.example.com, then the database FQDN is mysql.cluster.domain.example.com.
Thus taking my own lab as an example the mysql server would be at the url;
$ set | grep WILDCARD
RHT_OCP4_WILDCARD_DOMAIN=apps.eu46.prod.nextcle.com
$ MYSQL_DB=mysql.eu46.prod.nextcle.com
However this host then fails in the following mysql command
$ mysql -u -p -h${MYSQL_DB}
In the Solution element of the lab we see the command
MYSQL_DB=$(echo
mysql.ocp-${RHT_OCP4_WILDCARD_DOMAIN#"apps."})
Which adds a .ocp- element to the url. Once this is added the mysql command works. So the lab guide is in correct and should suggest to add msql.ocp-{your WILDCARD cluster domain (minus the apps )}
The text was updated successfully, but these errors were encountered: