# Run Exchange on Kubernetes

![](https://kubernetes.io/images/kubernetes-horizontal-color.png)

​[Kubernetes](https://kubernetes.io/) is a modern, advanced system that allows you to build a production-grade container orchestration environment. HollaEx Kit natively supports Kubernetes for more mission-critical usages.‌

To target the Kubernetes cluster to deploy the exchange or operate the exchange, **add** **`--kube`** **flag** behind the commands already introduced at [Setup](https://app.gitbook.com/@bitholla/s/workspace/~/drafts/-MKsrdHqM7AK1LWnRKlm/v/master/hollaex-kit/get-started/setup) or [Operation](https://app.gitbook.com/@bitholla/s/workspace/~/drafts/-MKsrdHqM7AK1LWnRKlm/v/master/hollaex-kit/operation).‌

## Prerequisites <a href="#prerequisites" id="prerequisites"></a>

#### Server side‌ <a href="#server-side" id="server-side"></a>

* Kubernetes Cluster (Recommend v1.19 or higher)
* ​[`kubernetes/ingress-nginx`](https://docs.hollaex.com/plugins/use-plugins/zendesk) installed on Kubernetes (v1.4.0 or older)
* ​[`cert-manager`](https://docs.cert-manager.io/en/latest/) installed on Kubernetes for issuing SSL cert (v1.0 or higher)
* ​[`helm`](https://helm.sh/) v3 installed.

#### Local side <a href="#local-side" id="local-side"></a>

* ​[`kubectl`](https://kubernetes.io/docs/reference/kubectl/overview/) (Recommend v1.19 or higher)
* `helm` v3 client.

Before running any HollaEx CLI commands for Kubernetes, you should set your [`KUBECONFIG`](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/) file ready on your terminal.

```
export KUBECONFIG=<PATH_TO_YOUR_KUBECONFIG_FILE>
```

## Examples‌ <a href="#examples" id="examples"></a>

If you want to setup an exchange, run the command below.

```
hollaex server --setup --kube
```

To start the exchange, run the command below.

```
hollaex server --start --kube
```

Applying custom domains is easy too. Just run the command below.

```
hollaex prod --kube
```

To shut down the exchange, run the command below.

```
hollaex server --stop --kube‌
```

Running the web server on Kubernetes is also similar.

```
hollaex web --setup --kube
```

Commands for Kubernetes are also following the generic HollaEx CLI command style. The only thing you need to add is `--kube` flag.
