mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
47 lines
1.2 KiB
ReStructuredText
47 lines
1.2 KiB
ReStructuredText
Run a BigchainDB Node in a Kubernetes Cluster
|
|
=============================================
|
|
|
|
Assuming you already have a `Kubernetes <https://kubernetes.io/>`_
|
|
cluster up and running, this page describes how to run a
|
|
BigchainDB node in it.
|
|
|
|
|
|
Step 1: Install kubectl
|
|
-----------------------
|
|
|
|
kubectl is the Kubernetes CLI.
|
|
If you don't already have it installed,
|
|
then see the `Kubernetes docs to install it
|
|
<https://kubernetes.io/docs/user-guide/prereqs/>`_.
|
|
|
|
|
|
Step 2: Configure kubectl
|
|
-------------------------
|
|
|
|
The default location of the kubectl configuration file is ``~/.kube/config``.
|
|
If you don't have that file, then you need to get it.
|
|
|
|
If you deployed your Kubernetes cluster on Azure
|
|
using the Azure CLI 2.0 (as per :doc:`our template <template-kubernetes-azure>`),
|
|
then you can get the ``~/.kube/config`` file using:
|
|
|
|
.. code:: bash
|
|
|
|
$ az acs kubernetes get-credentials \
|
|
--resource-group <name of resource group containing the cluster> \
|
|
--name <ACS cluster name>
|
|
|
|
|
|
Step 3: Run a MongoDB Container
|
|
-------------------------------
|
|
|
|
To start a MongoDB Docker container in a pod on one of the cluster nodes:
|
|
|
|
.. code:: bash
|
|
|
|
$ kubectl ?????
|
|
|
|
|
|
Note: The BigchainDB Dashboard can be deployed
|
|
as a Docker container, like everything else.
|