How does an application find its database? For all but the most embedded of solutions, the database exposes a port on a network. In a containerized development process, one container needs to find another container’s network address. But podman only exposes the IP address of a pod, not the hostname. How can we avoid hardcoding IP addresses of remote services into our containers?Continue reading
An earlier port hard coded the IP address and port used for MariaDB connections. I want to pull these out so I can pass them in on the command line when I create the client.Continue reading
Last time I showed how to recreate a WebUI-generated MariaDB deployment from the command line. But how should you really generate it in the first place? Let’s walk through:Continue reading
Web base user interfaces are great at walking a user through tasks they do not know how to perform yet. In my case, I want to launch a MariaDB instance on OpenShift. Eventually, I want to do this from the command line. Here are my steps.
I set up a MariaDB server and wanted to test it out. There are many docs out there about how to set up the client. This is what worked for me.
First, find out the internal IP address of the Database server pod:
oc get pod -l name=mariadb -o json | jq -r '. | .items | .status | .podIP '
In my case, that returned 10.131.0.81. Which lead to this command:
kubectl run -it --rm --image=mariadb:latest --restart=Never mariadb-client -- mysql keystone -h 10.131.0.81 --user keystone -pkeystone
Cloud is easy. It is networking that is hard.
Red Hat supports installing OpenShift on OpenStack. As a Cloud SA, I need to be able to demonstrate this, and make it work for customers. As I was playing around with it, I found I could not tear down clusters due to a dependency issue with ports.Continue reading
Jazz improvisation performance. You’ve been preparing. You have mastered your instrument with long tones, scales, and exercises. You have worked on general knowledge of music theory, chords, and the relationship between them. Now what?Continue reading