Skip to content

A Basic Terraform Demo for creating DigitalOcean Kubernetes Infrastructure

License

Notifications You must be signed in to change notification settings

mariadb-pieterhumphrey/terraformDemo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Demo to build MariaDB Enterprise in Containers

License CircleCI GitHub stars GitHub forks

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 .


Terms of use

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.


Prerequisites

You!

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.

Third Party Accounts

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.


Getting Started

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)

destroy

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.

Contributing to terraformDemo

To contribute to the terraformDemo repository, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin my-helm-repo/<location>
  5. Create the pull request.

Alternatively see the GitHub documentation on creating a pull request .

Contact

If you want to contact me you can reach me at kesterriley@hotmail.com.

License

This project uses the following license: MIT.

Disclaimer

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.

About

A Basic Terraform Demo for creating DigitalOcean Kubernetes Infrastructure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 75.5%
  • Makefile 15.6%
  • HCL 8.9%