2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. ngo1596216203295
|
|
|
|
.. _install-vault:
|
|
|
|
|
|
|
|
=============
|
|
|
|
Install Vault
|
|
|
|
=============
|
|
|
|
|
2022-05-30 14:49:14 -04:00
|
|
|
Vault is packaged as a system application and is managed using
|
2020-08-31 11:01:56 -04:00
|
|
|
:command:`system application`, and :command:`system helm-override` commands.
|
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
|
|
|
.. note::
|
2023-02-28 14:02:05 +00:00
|
|
|
Vault requires a storage backend with PVC enabled (for example, Ceph).
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
To install Vault, use the following procedure:
|
|
|
|
|
|
|
|
.. rubric:: |proc|
|
|
|
|
|
2022-05-30 14:49:14 -04:00
|
|
|
#. Locate the Vault tarball in ``/usr/local/share/applications/helm``.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
2023-12-11 03:13:30 +00:00
|
|
|
For example, ``/usr/local/share/applications/helm/vault-<version>.tgz``.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Upload Vault, using the following command:
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2023-12-04 04:22:45 +00:00
|
|
|
$ system application-upload ``/usr/local/share/applications/helm/vault-<version>.tgz``
|
|
|
|
|
|
|
|
Replace the <version> with appropriate version number.
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
#. Verify the Vault tarball has been uploaded.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
$ system application-list
|
|
|
|
|
|
|
|
#. Apply the Vault application.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
$ system application-apply vault
|
|
|
|
|
|
|
|
#. Monitor the status.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
$ watch -n 5 system application-list
|
|
|
|
|
|
|
|
or
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
|
|
|
$ watch kubectl get pods -n vault
|
|
|
|
|
|
|
|
It takes a few minutes for all the pods to start and for Vault-manager
|
|
|
|
to initialize the cluster.
|
|
|
|
|
|
|
|
The default configuration for the installed Vault application is:
|
|
|
|
|
|
|
|
**Vault-manager**
|
|
|
|
Runs as a statefulset, replica count of 1
|
|
|
|
|
|
|
|
**Vault-agent-injector**
|
|
|
|
Runs as a deployment, replica count of 1
|
|
|
|
|
|
|
|
**Vault**
|
|
|
|
Runs as statefulset, replica count is 1 on systems with fewer
|
|
|
|
than 3 nodes, replica count is 3 on systems with 3 or more nodes
|
|
|
|
|
|
|
|
|
|
|
|
For more information, see :ref:`Configure Vault <configure-vault>`.
|
|
|
|
|
|
|
|
|