Run exchange on Kubernetes

Kubernetes 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 each command which already introduction at Setup or Operation.‌

Prerequisites

Server side‌

  • Kubernetes Cluster (Recommend v1.16 or higher)

  • kubernetes/nginx-ingress installed on Kubernetes (latest)

  • cert-manager installed on Kubernetes for issuing SSL cert (v1.0 or higher)

  • helm v3 installed.

Local side

  • kubectl (Recommend v1.16 or higher)

  • helm v3 client.

Before running any HollaEx CLI commands for Kubernetes, you should set your KUBECONFIG file ready on your terminal.

export KUBECONFIG=<PATH_TO_YOUR_KUBECONFIG_FILE>

Examples‌

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 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.