Docker – Environment Variables, Env File & A Little Django (Python)

Docker logo

Why Use Environment Variables? Whilst building my Django project I replaced several of the values within settings.py with an option for them to be read from environment variables, rather than storing them in plain text within settings.py. This change allows me to store the settings.py file within a source control repository (e.g. Git) and also … Continue reading Docker – Environment Variables, Env File & A Little Django (Python)

Modifying A Pod To Use A Persistent Volume / Persistent Volume Claim (Kubernetes)

Pod manifest with PVC details

This blog post is going to look at connecting a Kubernetes pod to a Persistent Volume (PV) using a Persistent Volume Claim (PVC). I have split my blog posts whilst I have been learning about Kubernetes as they were getting quite lengthy and each is worthy of its own space. If you need to learn … Continue reading Modifying A Pod To Use A Persistent Volume / Persistent Volume Claim (Kubernetes)

Kubernetes and Volumes: Introducing Host and Persistent Volumes (Kubernetes)

test_pod.yml now has volumes and mount paths

In my last blog post I discussed how to create a pod in Kubernetes, in this blog post I hope to take this a little further by adding a volume. There are probably many reasons why you want to add a volume into Kubernetes, such as persisting data from one container within the pod into … Continue reading Kubernetes and Volumes: Introducing Host and Persistent Volumes (Kubernetes)

Creating A Pod (Kubernetes)

A Kubernetes pod manifest to create nginx

I am currently learning more about Kubernetes and need to make sure I'm understanding it correctly, which means more blogs about Kubernetes in my wording for future reference. MiniKube I'm running Kubernetes locally on my MacBook via MiniKube. If you want to follow along please install MiniKube as per the notes at: https://kubernetes.io/docs/tasks/tools/install-minikube/ Once installed … Continue reading Creating A Pod (Kubernetes)

Ansible In A Docker Container

Docker logo

Ansible and Docker are both powerful tools and in this blog post I aim to look at putting Ansible in a Docker container. I'm building on the work of https://hub.docker.com/r/philm/ansible_playbook/dockerfile/  Run Commands: docker run  -v "$(pwd)":/ansible/playbooks geektechstuff/ansible_container:latest playbook.yml -i inventory_file_name Switches: -v maps a directory into the container (in above example current working directory of … Continue reading Ansible In A Docker Container