mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
add docs on kubectl install & setup
This commit is contained in:
parent
9dba09144a
commit
2b235b21aa
@ -3,18 +3,44 @@ Run a BigchainDB Node in a Kubernetes Cluster
|
|||||||
|
|
||||||
Assuming you already have a `Kubernetes <https://kubernetes.io/>`_
|
Assuming you already have a `Kubernetes <https://kubernetes.io/>`_
|
||||||
cluster up and running, this page describes how to run a
|
cluster up and running, this page describes how to run a
|
||||||
BigchainDB node on it.
|
BigchainDB node in it.
|
||||||
|
|
||||||
Step 1: Install and Configure kubectl
|
|
||||||
-------------------------------------
|
Step 1: Install kubectl
|
||||||
|
-----------------------
|
||||||
|
|
||||||
kubectl is the Kubernetes CLI.
|
kubectl is the Kubernetes CLI.
|
||||||
See the `Kubernetes docs to install and configure kubectl
|
If you don't already have it installed,
|
||||||
|
then see the `Kubernetes docs to install it
|
||||||
<https://kubernetes.io/docs/user-guide/prereqs/>`_.
|
<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
|
Note: The BigchainDB Dashboard can be deployed
|
||||||
as a Docker container, like everything else.
|
as a Docker container, like everything else.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user