This project is designed to create a containerised Kubernetes infrastructure on DigitalOcean, and deploy the following using automation:
- MariaDB Enterprise Server
- MaxScale
- PHP test application
For this demonstration to work, you will require various third party accounts.
As this is a demonstration of Enterprise MariaDB you will also require an Enterprise Customer Download Token .
Nothing in this demonstration is designed to be used in production and this is not supplied, supported or endorsed by MariaDB.
Please note the free $200 credit is enough to run this demonstration, however, if you do not decommission your services, or you use more than the free credit you will be liable for the cost.
You require a certain level of technical knowledge to complete this, as you are required to install some tools to your computer.
The demonstration is designed to run on a MacBook or linux based computer where you have access to the internet and a terminal, where you can execute all the commands with the required permissions.
You will require FREE accounts for:
CircleCi and Digital Ocean support Single Sign On (SSO) using your GitHub account. SSO allows easy navigation between the services and allows you to link the accounts together.
It is important to create your Github account before creating the other accounts.
Hopefully you have already created the Third Party Accounts required.
You can now fork the required repositories.
Once you have forked the repositories, there is a simple script to run:
bash <(curl https://raw.githubusercontent.com/mariadb-kester/terraformDemo/main/bin/installation.sh)
This script will check out your forked projects, prompt you for some inputs and will prepare your system ready to build.
When this script runs you might need to enter your Operating System User password, you might also have to accept some
prompts with a y
or yes
To make it easy, there is a make
script to set up your laptop, this will ask you for your GitHub User Name and email
address and an Access Key for Digital Ocean.
(note: if you are prompted for a password, it will be your computer password, this is not always clear, you might also be prompted for some 'y' inputs)
The destroy command will delete the infrastructure. This is important, if you have finished using it, to stop getting charged. Clearly, do not run this until you have finished.
make destroy-dev
If you are running the destroy command, it will ask you to confirm by typing yes
at the prompt.
To contribute to the terraformDemo repository, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and commit them:
git commit -m '<commit_message>'
- Push to the original branch:
git push origin my-helm-repo/<location>
- Create the pull request.
Alternatively see the GitHub documentation on creating a pull request .
If you want to contact me you can reach me at [email protected].
This project uses the following license: MIT.
Whilst, I might currently work for MariaDB, this work was originally created before my employment by MariaDB and any development to these scripts is done strictly in my own time. It is therefore not endorsed, supported by or recommend by MariaDB.