Posts By: jonny

Add Auth to Prometheus Container

Using docker-compose to run a prometheus container that I wanted basic auth added to. My docker-compose file is shown below: Notice that I am mounting a directory from the host into /etc/prometheus on the container exposing the web.yml file (see below). Also I am specifying the web.yml file as a command line parameter when prometheus… Read more »

Use Docker Registry in Podman

By default podman needs the full URL to pull in a docker image. So instead of: you need: To configure podman to to check the docker registry by default amend: And add the following

AWS Secrets Manager for EKS Env Variables

With an EKS cluster created I followed the AWS instructions for integrating secrets manager so I could pull secrets and use them as environment variables in pods. The secrets were mounted fine and I could cat them out when exec’ing into the container. However, nothing I did would allow the secrets to be used as… Read more »

Install MariaDB on MacOSX

Using brew to install MariaDB: To manage the service use ‘brew services’ e.g Notice that the install ran the following: So connect to MariaDB as your Mac user e.g. I used my mac user password. Or just with the mysql command e.g.

Hashicorp Nomad Dev Install on Debian

Ensure the deb repo is configured and install nomad: Environment Variables Development Mode These commands are for testing non-production tasks. In this example I am running on a server with IP address 192.168.1.91 The web UI will be available on that IP port 4646 Check the status of the node: Running a test redis job… Read more »

Hashicorp Vault Install on Debian

For a new vault cluster, add the APT repo: Depending on how you have configured the listener you may need to set an environment variable specifying the vault location before commands like ‘vault status’ will work: Notice I am setting a variable to disable certificate verification to avoid having to add ‘-tls-skip-verify’ to each command…. Read more »

Packer HCL Environment Variables

Converting Packer templates from json to HCL for Packer version 1.7.2. The easiest thing to do is try the automated conversion: For environment variables we need to set them with a PKR_VAR prefix e.g. Then that can be defined in the template.pkr.hcl file with: And then used in later sections like this: Then your validation… Read more »