Installing WordPress on Kubernetes
$200 Free Credit For 60 days With DigitalOcean
Welcome
Hello,
Welcome to my WordPress website running on Kubernetes.
I enjoy playing around with Docker and Kubernetes in my spare time and also professionally at work.
I honestly wrote every website I ever built prior this one using vi.. (web 1.0) and I thought about the topic at hand, deploy WordPress with Kubernetes.. well I guessed I should really deploy my site using WordPress on Kubernetes and pick a rocking theme for it. Well I’m kinda retro, I work in terminals all day long and I wouldn’t have it any other way.
So here it is, the RetroGeek WordPress theme… perfect.
Thanks to the developer of this WordPress Theme tuxlog. Cheers.
Installing WordPress on Kubernetes
There are a few ways to go about deploying WordPress on Kubernetes, depending on how much or how little you want to control and customise that process. You can create your own Docker images, publish them to your personal or public registry, or simply use the containers that are built from the official sources. There are Helm charts which are popular, but after a little bit, you might find that you are limited by that choice. I mean, who wants to delete all of their pvc’s to change a password secret.
You can even partake in the 1-click-installs that DigitalOcean author and provide. Try them all, but I’m sure if you think like me, you want to have a little bit more control than a 1-click-install or use a Helm chart.
Disclaimer: Nowhere in this how-to includes a 1-click or Helm Chart.
Down To Business
Option 1. Building a non redundant WordPress with single instances. For a testing or hobby site, this is perfectly fine to get into deploying onto Kubernetes.
Option 2. In our second option for installation, we’ll use an external database, which could be replicated,
use openEBS-nfs-provisioner which allows having multiple nodes being able to read/write data to your pvc volumes,
multiple nodes and pods that you can scale up or down on the fly.
Option 1
We’ll create our Kubernetes cluster on Digitalocean.
If you don’t run linux or mac, Install doctl and kubectl tools within a local or remote virtual server running something like Ubuntu. Seeing as you can click my link above and get $200 Credit for 60 days with DigitalOcean, create the smallest droplet you can on DigitalOcean and make that your base for running commands locally within your Kubernetes cluster. Makes firewall rules and everything while getting started so much easier.
While you are free to use Windblows, I assume if you do, you are smart enough on your own to make it work. I won’t cover any of that here.
Setting up environment
Coming soo…..
Published @ March 24, 2024 4:04 pm