You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## How to Install and Configure `vault` with `certs`
2
+
3
+
### Prerequisites:
4
+
5
+
1.**Kubernetes Configuration**: Ensure your `KUBECONFIG` is set up to point to the Kubernetes cluster where you want to deploy `vault`. This can typically be done by running:
6
+
```bash
7
+
export KUBECONFIG=/path/to/your/kubeconfig
8
+
```
9
+
This command tells your local machine which Kubernetes cluster to interact with.
10
+
11
+
### Step 1: Install `vault` using Helm
12
+
13
+
1.**Navigate to the `magistrala` Helm chart directory**:
This command uses Helm to upgrade (or install) the `magistrala` release in the `mg` namespace with `vault` enabled.
24
+
25
+
### Step 2: Initialize `vault`
26
+
27
+
1.**Navigate to the `vault` Scripts Directory**:
28
+
29
+
If you are currently in the `charts/magistrala` directory, go up two levels to the root and then to the `vault` scripts directory by running:
30
+
31
+
```bash
32
+
cd ../../scripts/vault
33
+
```
34
+
35
+
If you are at the root of the repository, navigate to the `vault` scripts directory directly by running:
36
+
37
+
```bash
38
+
cd scripts/vault
39
+
```
40
+
41
+
2.**Run the `vault_init.sh` script**:
42
+
```bash
43
+
./vault_init.sh
44
+
```
45
+
This script initializes `vault` by setting up necessary configurations, such as unsealing the vault and applying initial policies. This is a crucial step to get `vault` ready for use.
46
+
47
+
### Step 3: Enable the `certs` Service and Apply Configuration
48
+
49
+
1.**Load Environment Variables**:
50
+
51
+
```bash
52
+
source .env
53
+
```
54
+
55
+
This command loads environment variables from the `.env` file into your current shell session. These variables are required for the next step to configure the `certs` service.
56
+
57
+
2.**Navigate back to the `magistrala` Helm chart directory**:
58
+
59
+
```bash
60
+
cd ../../charts/magistrala
61
+
```
62
+
63
+
3.**Upgrade the `magistrala` installation with `certs` enabled**:
0 commit comments