Computing is three things: calculation, movement, and storage. The rest is commentary.
Continue readingAuthor Archives: Adam Young
Building an OpenShift LDAP URL from FreeIPA
If you want to use LDAP authentication with OpenShift, you need to build an LDAP URL from the information you do have. Here are the steps.
Continue readingCopying files into a container at run time
There are three distinct things that have to happen between installing the keystone software and running a Keystone instance. The first if management of the configuration files. Second is the database migrations, and third is the keystone bootstrap of the data base values. When coding container images to run a keystone server, not only do you need to be aware of each of these stpes, you need to make sure you are performing them in such a way that you can run scale the the Keystone server horizontally, handle zero downtime upgrades, and handle token-validating key rotations. Federated identity adds an additional twist as you need to handle the addition of httpd config changes for new identity providers.
Let’s walk through this setup in detail.
Continue readingInjecting a Host Entry in podman-run
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 readingInjecting Parameters into container image
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 readingRunning MariaDB from Podman
I am moving all of my tooling over from Docker to podman and buildah. One thing I want to reproduce it the mariadb setup I used.
Continue readingLet’s Buildah Keystoneconfig
Buildah is a valuable tool in the container ecosystem. As an effort to get more familiar with it, and to finally get my hand-rolled version of Keystone to deploy on Kubernetes, I decided to work through building a couple of Keystone based containers with Buildah.
Continue readingFrom WebUI to CLI: OCP Templates
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 readingFrom WebUI to CLI: MariaDB in OpenShift
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.
Running the MariaDB Client on OpenShift
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[0] | .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 |