# How to Install Doctor Droid PlayBooks in Kubernetes Using Helm Charts

%[https://www.youtube.com/watch?v=AnvThbF2HHQ] 

### **Step 1:** Clone the repository

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1724772794202/edd5b240-c168-419a-a51c-e175f49dfac4.png align="center")

```yaml
git clone git@github.com:DrDroidLab/PlayBooks.git
```

### **Step 2:** Choose your K8s cluster

Use the following command to check the cluster in your current context.

```yaml
kubectl config current-context
```

Switch to the cluster where you want to install the helm chart

```yaml
kubectl config use-context <your_k8s_cluster_context>
```

### **Step 3:** Prepare the helm charts

In this guide, we'll setup on an AWS EKS cluster.

* Navigate to helm folder
    
* Copy and paste the subnets of your Kubernetes cluster into the ingress file
    

For information on GKE, check [here](https://github.com/DrDroidLab/PlayBooks-Helm-Charts/tree/main/gke).

### **Step 4:** Install the helm charts

```yaml
helm install playbooks . -n <namespace>
```

Note: Replace &lt;namespace&gt; with the namespace of your choice.

### **Step 5:** Verify the pods & services

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1724773512326/123231c6-a701-45bd-b208-cd2f1548c074.png align="center")

### **Step 6:** Access the Platform

Use the following command to get the load balancer URL for accessing the portal.

```yaml
kubectl get ingress web-ingress -o jsonpath='{.status.loadBalancer.ingress[0].hostname}'
```

Optionally, you can set up an external database instead of using the postgres DB that is created on-the-fly as a stateful set. [Refer to the documentation](https://docs.drdroid.io/docs/installation#helm) for instructions.
