Skip to content

WordPress on Kubernetes project: prod ready & fully scalable for both private and public cloud

License

Notifications You must be signed in to change notification settings

AdnanHodzic/wp-k8s

Repository files navigation

wp-k8s: WordPress on Kubernetes project

This repository consists of various Kubernetes deployments (see below for full info) which aim to seamlessly deploy production ready WordPress on both public and private cloud with autoscaling capabilities with minimum to no ops tasks. If you're interested in same type of setup without K8s, please refer to my containerized-wordpress-project.

While wp-k8s project is compatible with any Kubernetes/cloud provider:

For wp-k8s private cloud implementation refer to:

For wp-k8s public cloud implementation on GKE refer to:

For running serverless WordPress with Cloud Run refer to

Brief overview:

By Default, kustomization.yaml - will create all necessary secrets and make necessary deployments. See its contents for which deployments to enable based on which cloud (private or public) is targeted.

Contents of this file can be deployed by running: kubectl apply -k ./

Full overview

HowTo Create MySQL Cluster using mysql-operator

If you don't have an existing MySQL database server, you can create MySQL cluster using MySQL operator.

Install MySQL Operator

helm repo add bitpoke https://helm-charts.bitpoke.io
helm install mysql-operator bitpoke/mysql-operator

Deploy MySQL cluster

Replace every "redacted" value as part of mysql-cluster.yaml with base64 encoded value, i.e:

echo -n 'mysql-password-value' | base64
YlhsemNXd3RjR0Z6YzNkdmNtUT0K

Followed by: kubectl apply -f mysql-cluster.yaml

After couple of minutes your MySQL cluster will be up and running. For more informaiton refer to: MySQL Operator - Deploy Cluster page

Discussion:

Donate

If you found this project useful, show your support and appreciation by donating or contributing code. Otherwise, giving credits and acknowledgments also goes a long way.

Financial donation

If wp-k8s helped you out and you find it useful, show your appreciation by donating (any amount) to the project!

Become Github Sponsor

Become a sponsor to Adnan Hodzic on Github to acknowledge my efforts and help project's further open source development.

PayPal

paypal

BitCoin

bc1qlncmgdjyqy8pe4gad4k2s6xtyr8f2r3ehrnl87

bitcoin

Code contribution

Other ways of supporting the project consists of making a code or documentation contribution. If you have an idea for a new features or want to implement some of the existing feature requests or fix some of the bugs & issues. Please make your changes and submit a pull request which I'll be glad to review. If your changes are accepted you'll be credited for your contiribution.