# Deployment Automation - Kubernetes in Azure Cloud, AWS and GC

**URL:** <https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170>\
**Category:** Resources\
**Tags:** indexer\
**Created:** [July 12, 2021, 12:50am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170 "2021-07-12T00:50:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![yn\_alex](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@yn\_alex](https://forum.thegraph.com/u/yn_alex)\
**Post date:** [July 12, 2021, 12:50am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/1 "2021-07-12T00:50:47Z")

</div>

Hello fellow indexers,

As part of the Grants Program we created a solution to deploy TheGraph on the big three public clouds: Azure, AWS, Google Cloud.

The solution is using Terraform to automatically deploy the Cloud Infrastructure and Helm in order to deploy The Graph containers on a Kubernetes Cluster. It includes the following:

- Automated Infrastructure Deployment [k8s]
- Integration with Log Analytics [Azure]
- The Graph resources (All the main containers)
- Prometheus and Grafana
- Community Dashboards included

There are some pros and cons when migrating to a public cloud such as Azure/AWS/Google.

**Pros:**

- scalability
- flexibility
- a nice set of tools for every situation
- less management burden

**Cons:**

- Costs - It can become costly over time since all these benefits have a price tag attached. The costs must be carefully kept under control.

The solution is modular and it can be used in any combination by an experienced user.

**Terraform:**

- deploy your own Kubernetes Cluster
- deploy the PAAS Database / User your own database
- scale the cluster resources both vertically and horizontally dependig on the needs

**Helm:**

- use helm charts to deploy the app containers

For the less experienced user there is a step by step tutorial on the Github Readme page and a video tutorial that can be followed as a walkthrough. Links below:

**Github** : [GitHub - easy2stake/thegraph](https://github.com/easy2stake/thegraph)  
**Youtube** : [The Graph - Azure Cloud Automation - YouTube](https://www.youtube.com/watch?v=ORr3yWBSn90)

**Note:**  
The Youtube video is quite big [56m] but you can jump to the section you need by following the chapters. It was recorded so that anyone (experienced or not) can follow while having the possibility to skip through the sections easily if you already have automation skills.

Step 1 - Installing prerequisites  
Step 2.1 - Terraform files explained  
Step 2.2 - Grabing Azure Credentials for Terraform  
Step 2.3 - Using Terraform to deploy  
Step 2.4 - Exploring Azure Portal after deploying  
Step 3.1 - Grabbing K8S Credentials  
Step 3.2 - Helm Files Explained  
Step 3.3 - Deploying with Helm  
Step 3.4 - Exploring the Helm Deployment

---

<div class="post-metadata">

**Author:** ![Shuai](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/shuai/32/733_2.png) [@Shuai](https://forum.thegraph.com/u/Shuai)\
**Post date:** [July 28, 2021, 5:29am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/2 "2021-07-28T05:29:46Z")

</div>

Hi. When will you release the solution on AWS? It’s very helpful for us.

---

<div class="post-metadata">

**Author:** ![yn\_alex](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@yn\_alex](https://forum.thegraph.com/u/yn_alex)\
**Post date:** [August 2, 2021, 9:44am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/3 "2021-08-02T09:44:24Z")

</div>

Hi Shuai,

Trying to deliver a first version by the end of the next week.

---

<div class="post-metadata">

**Author:** ![yn\_alex](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@yn\_alex](https://forum.thegraph.com/u/yn_alex)\
**Post date:** [August 10, 2021, 10:34am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/4 "2021-08-10T10:34:28Z")

</div>

Hello Team,

We just released the AWS support.  
Check it out: [GitHub - easy2stake/thegraph](https://github.com/easy2stake/thegraph)

@Shuai

---

<div class="post-metadata">

**Author:** ![Shuai](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.thegraph.com/shuai/32/733_2.png) [@Shuai](https://forum.thegraph.com/u/Shuai)\
**Post date:** [August 11, 2021, 1:57am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/5 "2021-08-11T01:57:10Z")

</div>

Thanks. I’s very helpful.

---

<div class="post-metadata">

**Author:** ![yn\_alex](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@yn\_alex](https://forum.thegraph.com/u/yn_alex)\
**Post date:** [August 11, 2021, 10:20am UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/6 "2021-08-11T10:20:19Z")

</div>

Let us know if you encounter any issues, we’ll try to help.

---

<div class="post-metadata">

**Author:** ![yn\_alex](https://avatars.discourse-cdn.com/v4/letter/y/edb3f5/32.png) [@yn\_alex](https://forum.thegraph.com/u/yn_alex)\
**Post date:** [August 20, 2021, 12:59pm UTC](https://forum.thegraph.com/t/deployment-automation-kubernetes-in-azure-cloud-aws-and-gc/2170/7 "2021-08-20T12:59:05Z")

</div>

Hello Team,

gCloud support is here !

> **[thegraph/google-terraform at main · easy2stake/thegraph](https://github.com/easy2stake/thegraph/tree/main/google-terraform)**
>
> main/google-terraform
