- Clone this repo
- Install terraform
- Install doctl
- Run
terraform init
in this repo. This will initialize Terraform and get us ready to run Terraform plans. - Run
doctl auth init
to login to DigitalOcean. This will get us ready to pull data from DigitalOcean. - Get an API token from your DigitalOcean account from https://cloud.digitalocean.com/account/api/tokens
- Set it to
DIGITALOCEAN_TOKEN
in your terminal environment withexport DIGITALOCEAN_TOKEN=<your token>
. This will be used by Terraform. - Run
terraform plan -out plan.tfplan
to plan this Terraform application. - Run
terraform apply "plan.tfplan"
to apply this to your DigitalOcean account. This will launch a K8s cluster, a Postgres DB, and a Redis DB. This can take a long time to run. Note the Postgres and Redis databases are just for show, nothing is setup to use them. - Run
doctl kubernetes cluster kubeconfig save dcsil-cluster
to download the kubernetes config for the cluster we just launched (named dcsil-cluster). - Run
./launch.sh
to launch nginx/load balancers on your Kubernetes Cluster. This script will set up a DCSIL namespace, then launch our nginx application on Kubernetes. Next it will launch a LoadBalancer that is set up to serve data from any apps with the label "nginx". This script can take a while to run. - Go to the IP Address the script prints out. This should show the nginx page.
do_terraform's Introduction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.