mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Update deployment with tectonic documentation
- Add details about CA configuration - Update storage class template
This commit is contained in:
parent
a4140e92a6
commit
1eb8764e4a
@ -424,13 +424,14 @@ LRS means locally-redundant storage: three replicas
|
|||||||
in the same data center.
|
in the same data center.
|
||||||
Premium storage is higher-cost and higher-performance.
|
Premium storage is higher-cost and higher-performance.
|
||||||
It uses solid state drives (SSD).
|
It uses solid state drives (SSD).
|
||||||
At the time of writing,
|
You can create a `storage account <https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account>`_
|
||||||
when we created a storage account with SKU ``Premium_LRS``
|
for Premium storage and associate it with your Azure resource group.
|
||||||
and tried to use that,
|
|
||||||
the PersistentVolumeClaim would get stuck in a "Pending" state.
|
|
||||||
For future reference, the command to create a storage account is
|
For future reference, the command to create a storage account is
|
||||||
`az storage account create <https://docs.microsoft.com/en-us/cli/azure/storage/account#create>`_.
|
`az storage account create <https://docs.microsoft.com/en-us/cli/azure/storage/account#create>`_.
|
||||||
|
|
||||||
|
.. Note::
|
||||||
|
Please refer to `Azure documentation <https://docs.microsoft.com/en-us/azure/virtual-machines/windows/premium-storage>`_
|
||||||
|
for the list of VMs that are supported by Premium Storage.
|
||||||
|
|
||||||
The Kubernetes template for configuration of Storage Class is located in the
|
The Kubernetes template for configuration of Storage Class is located in the
|
||||||
file ``mongodb/mongo-sc.yaml``.
|
file ``mongodb/mongo-sc.yaml``.
|
||||||
@ -438,6 +439,10 @@ file ``mongodb/mongo-sc.yaml``.
|
|||||||
You may have to update the ``parameters.location`` field in the file to
|
You may have to update the ``parameters.location`` field in the file to
|
||||||
specify the location you are using in Azure.
|
specify the location you are using in Azure.
|
||||||
|
|
||||||
|
If you want to use a custom storage account with the Storage Class, you
|
||||||
|
can also update `parameters.storageAccount` and provide the Azure storage
|
||||||
|
account name.
|
||||||
|
|
||||||
Create the required storage classes using:
|
Create the required storage classes using:
|
||||||
|
|
||||||
.. code:: bash
|
.. code:: bash
|
||||||
@ -447,15 +452,6 @@ Create the required storage classes using:
|
|||||||
|
|
||||||
You can check if it worked using ``kubectl get storageclasses``.
|
You can check if it worked using ``kubectl get storageclasses``.
|
||||||
|
|
||||||
**Azure.** Note that there is no line of the form
|
|
||||||
``storageAccount: <azure storage account name>``
|
|
||||||
under ``parameters:``. When we included one
|
|
||||||
and then created a PersistentVolumeClaim based on it,
|
|
||||||
the PersistentVolumeClaim would get stuck
|
|
||||||
in a "Pending" state.
|
|
||||||
Kubernetes just looks for a storageAccount
|
|
||||||
with the specified skuName and location.
|
|
||||||
|
|
||||||
|
|
||||||
Step 11: Create Kubernetes Persistent Volume Claims
|
Step 11: Create Kubernetes Persistent Volume Claims
|
||||||
---------------------------------------------------
|
---------------------------------------------------
|
||||||
|
@ -47,7 +47,9 @@ when following the steps above:
|
|||||||
``tectonic-cluster-CLUSTER``.
|
``tectonic-cluster-CLUSTER``.
|
||||||
|
|
||||||
#. Set the ``tectonic_base_domain`` to ``""`` if you want to use Azure managed
|
#. Set the ``tectonic_base_domain`` to ``""`` if you want to use Azure managed
|
||||||
DNS. You will be assigned a ``cloudapp.azure.com`` sub-domain by default.
|
DNS. You will be assigned a ``cloudapp.azure.com`` sub-domain by default and
|
||||||
|
you can skip the ``Configuring Azure DNS`` section from the Tectonic installation
|
||||||
|
guide.
|
||||||
|
|
||||||
#. Set the ``tectonic_cl_channel`` to ``"stable"`` unless you want to
|
#. Set the ``tectonic_cl_channel`` to ``"stable"`` unless you want to
|
||||||
experiment or test with the latest release.
|
experiment or test with the latest release.
|
||||||
@ -76,6 +78,14 @@ when following the steps above:
|
|||||||
#. Set the ``tectonic_azure_ssh_key`` to the path of the public key created in
|
#. Set the ``tectonic_azure_ssh_key`` to the path of the public key created in
|
||||||
the previous step.
|
the previous step.
|
||||||
|
|
||||||
|
#. We recommend setting up or using a CA(Certificate Authority) to generate Tectonic
|
||||||
|
Console's server certificate(s) and adding it to your trusted authorities on the client side,
|
||||||
|
accessing the Tectonic Console i.e. Browser. If you already have a CA(self-signed or otherwise),
|
||||||
|
Set the ``tectonic_ca_cert`` and ``tectonic_ca_key`` configurations with the content
|
||||||
|
of PEM-encoded certificate and key files, respectively. For more information about, how to set
|
||||||
|
up a self-signed CA, Please refer to
|
||||||
|
:doc:`How to Set up self-signed CA <ca-installation>`.
|
||||||
|
|
||||||
#. Note that the ``tectonic_azure_client_secret`` is the same as the
|
#. Note that the ``tectonic_azure_client_secret`` is the same as the
|
||||||
``ARM_CLIENT_SECRET``.
|
``ARM_CLIENT_SECRET``.
|
||||||
|
|
||||||
@ -85,6 +95,10 @@ when following the steps above:
|
|||||||
``test-cluster`` and specified the datacenter as ``westeurope``, the Tectonic
|
``test-cluster`` and specified the datacenter as ``westeurope``, the Tectonic
|
||||||
console will be available at ``test-cluster.westeurope.cloudapp.azure.com``.
|
console will be available at ``test-cluster.westeurope.cloudapp.azure.com``.
|
||||||
|
|
||||||
|
#. Note that, if you do not specify ``tectonic_ca_cert``, a CA certificate will
|
||||||
|
be generated automatically and you will encounter the untrusted certificate
|
||||||
|
message on your client(Browser), when accessing the Tectonic Console.
|
||||||
|
|
||||||
|
|
||||||
Step 4: Configure kubectl
|
Step 4: Configure kubectl
|
||||||
-------------------------
|
-------------------------
|
||||||
|
@ -105,6 +105,21 @@ Finally, you can deploy an ACS using something like:
|
|||||||
--orchestrator-type kubernetes \
|
--orchestrator-type kubernetes \
|
||||||
--debug --output json
|
--debug --output json
|
||||||
|
|
||||||
|
.. Note::
|
||||||
|
Please refer to `Azure documentation <https://docs.microsoft.com/en-us/cli/azure/acs?view=azure-cli-latest#az_acs_create>`_
|
||||||
|
for a comprehensive list of options available for `az acs create`.
|
||||||
|
Please tune the following parameters as per your requirement:
|
||||||
|
|
||||||
|
* Master count.
|
||||||
|
|
||||||
|
* Agent count.
|
||||||
|
|
||||||
|
* Agent VM size.
|
||||||
|
|
||||||
|
* **Optional**: Master storage profile.
|
||||||
|
|
||||||
|
* **Optional**: Agent storage profile.
|
||||||
|
|
||||||
|
|
||||||
There are more options. For help understanding all the options, use the built-in help:
|
There are more options. For help understanding all the options, use the built-in help:
|
||||||
|
|
||||||
|
@ -7,8 +7,12 @@ metadata:
|
|||||||
name: slow-db
|
name: slow-db
|
||||||
provisioner: kubernetes.io/azure-disk
|
provisioner: kubernetes.io/azure-disk
|
||||||
parameters:
|
parameters:
|
||||||
skuName: Standard_LRS
|
skuName: Standard_LRS #[Standard_LRS, Premium_LRS]
|
||||||
location: westeurope
|
location: westeurope
|
||||||
|
# If you have created a different storage account e.g. for Premium Storage
|
||||||
|
#storageAccount: <Storage account name>
|
||||||
|
# Use Managed Disk(s) with VMs using Managed Disks(Only used for Tectonic deployment)
|
||||||
|
#kind: Managed
|
||||||
---
|
---
|
||||||
######################################################################
|
######################################################################
|
||||||
# This YAML section desribes a StorageClass for the mongodb configDB #
|
# This YAML section desribes a StorageClass for the mongodb configDB #
|
||||||
@ -19,5 +23,9 @@ metadata:
|
|||||||
name: slow-configdb
|
name: slow-configdb
|
||||||
provisioner: kubernetes.io/azure-disk
|
provisioner: kubernetes.io/azure-disk
|
||||||
parameters:
|
parameters:
|
||||||
skuName: Standard_LRS
|
skuName: Standard_LRS #[Standard_LRS, Premium_LRS]
|
||||||
location: westeurope
|
location: westeurope
|
||||||
|
# If you have created a different storage account e.g. for Premium Storage
|
||||||
|
#storageAccount: <Storage account name>
|
||||||
|
# Use Managed Disk(s) with VMs using Managed Disks(Only used for Tectonic deployment)
|
||||||
|
#kind: Managed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user