-
Notifications
You must be signed in to change notification settings - Fork 4
/
README.md.gotmpl
95 lines (69 loc) · 2.42 KB
/
README.md.gotmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
{{ template "chart.header" . }}
{{ template "chart.description" . }}
{{ template "chart.versionBadge" . }}{{ template "chart.typeBadge" . }}{{ template "chart.appVersionBadge" . }}
## Lavanet Consumer Helm Chart
## Prerequisites
Before deploying the consumer chart you'll need to do few imporatnt things:
* Create wallet and export it, or export an existing one
### Create wallet
In order to create a new wallet, make sure you have [lavap](https://github.com/lavanet/lava/releases/latest) CLI installed and run:
```shell
lavap keys add my-key
```
After that export the key by running:
```shell
lavap keys export my-key
```
Enter a password for the exported key, it's important that you note it for the next steps.
### Apply wallet secrets to kubernetes
Encode both exported key and your password on base64:
```shell
base64 -w 0 <<EOF
-----BEGIN TENDERMINT PRIVATE KEY-----
kdf: bcrypt
salt: 5A21556CF5842BDEF9B9949418B0E0B8
type: secp256k1
******ngpVQsF7xr3jBFtNXUhQN4Q0pwDvRk8jQ1ubTyE/j8vg9q811iqb7gD
P7ZmrGWPZLrTvh******/InhEHq1vlLIEc9fk8=
=aGWZ
-----END TENDERMINT PRIVATE KEY-----
EOF
```
```shell
echo "12345678" | base64
```
Add two new secrets to your namespace containing the encoded exported key and the passphrase:
```shell
cat > exported-key.yaml << EOF
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: wallet
data:
key: >-
LS0tLS1CRUdJTiBURU5ERVJNSU5UIFBSSVZBVEUgS0VZLS0tLS0Ka2RmOiBiY3J5cHQKc2FsdDogNUEyMTU1NkNGNTg0MkJERUY5Qjk5NDk0MThCMEUwQjgKdHlwZTogc2VjcDI1NmsxCgoqKioqKipuZ3BWUXNGN3hyM2pCRnROWFVoUU40UTBwd0R2Ums4alExdWJUeUUvajh2ZzlxODExaXFiN2dEClA3Wm1yR1dQWkxyVHZoKioqKioqL0luaEVIcTF2bExJRWM5Zms4PQo9YUdXWgotLS0tLUVORCBURU5ERVJNSU5UIFBSSVZBVEUgS0VZLS0tLS0K
password: MTIzNDU2NzgK
EOF
kubectl apply -f exported-key.yaml -n lava-system
```
### Modify values file
The final step is to refrence the newly created secrets in the chart's values file:
```yaml
# values.yaml
key:
secretName: "wallet"
secretKey: "key"
passwordSecretName: "wallet"
passwordSecretKey: "password"
```
## Installing the Chart
To install the chart with the release name `my-{{ template "chart.name" . }}`:
```shell
helm repo add lavanet https://lavanet.github.io/helm-charts
helm repo update
helm install my-{{ template "chart.name" . }} lavanet/{{ template "chart.name" . }} -n lava-system --create-namespace
```
{{ template "chart.requirementsSection" . -}}
{{ template "chart.valuesSection" . }}
{{ template "helm-docs.versionFooter" . }}