> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/sanitation/setup/getting-started.md).

# Setup

## Installation Pre-reads <a href="#pre-read" id="pre-read"></a>

* Know the basics of Kubernetes: <https://www.youtube.com/watch?v=PH-2FfFD2PU&t=3s>.
* Know the [basics of kubectl](https://www.tutorialspoint.com/kubernetes/kubernetes_kubectl_commands.htm) commands.
* Know Kubernetes Kubernetes Resources via YAML, Deployments, Replica Sets, and Pods: <https://www.youtube.com/watch?v=ohSUtEfDefc>.
* Know how to manage env values, secrets of any service deployed in Kubernetes: <https://www.youtube.com/watch?v=OW244LxB4oI>.
* Know how to port forward to a pod running inside k8s cluster and work locally <https://www.youtube.com/watch?v=TT3nd5n5Yus>.
* Know sops to secure your keys/credentials: <https://www.youtube.com/watch?v=DWzJ87KbwxA>.

## 1. Choose the Cloud <a href="#v-1-choose-the-cloud" id="v-1-choose-the-cloud"></a>

Choose your cloud and follow the instructions to set up a Kubernetes cluster before moving on to the deployment.

{% content-ref url="/pages/-Mgv0ehhnuDdzEzriMwR" %}
[On AWS](/sanitation/setup/getting-started/on-aws.md)
{% endcontent-ref %}

## 2. Deployment <a href="#id-2-deploy-digit" id="id-2-deploy-digit"></a>

{% embed url="<https://core.digit.org/guides/installation-guide/quick-setup/2.-deployment>" %}

## 3. Destroy the Cluster <a href="#id-5-destroy-the-cluster" id="id-5-destroy-the-cluster"></a>

Finally, clean up the cluster setup if you wish, using the following command. This will delete the entire cluster and other cloud resources that were provisioned for the DIGIT setup.

```
cd DIGIT-DevOps/infra-as-code/terraform/my-digit-eks
terraformdestroy​
```

## Conclusion <a href="#conclusion" id="conclusion"></a>

We have successfully created infra on cloud, and deployed DIGIT in the cluster.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.digit.org/sanitation/setup/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
