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
Merge branch 'refactor/consolidate-p2p-modules' into fix/raintree
* refactor/consolidate-p2p-modules:
chore: update changelog
switch to new dns introduced with helm charts
[Consensus] Log warnings if server module is not enabled (#679)
chore: update changelog
add generated helm docs
chore: update validator chart P2P hostname config
chore: remove `use_libp2p` from validator chart
[Peristence] Fix `TxIndexer` to index sender and recipient transactions with height and index suffixes (#677)
Update e2e/docs/CHANGELOG.md (#681)
Update devlog5.md (#672)
[Infra] validator helm chart for LocalNet (#658)
Update issue.md
Copy file name to clipboardexpand all lines: .github/ISSUE_TEMPLATE/issue.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ assignees: ""
70
70
-[ ]**New tests or benchmarks**: `make ...`
71
71
-[ ]**All tests**: `make test_all`
72
72
-[ ]**LocalNet**: verify a `LocalNet` is still functioning correctly by following the instructions at [docs/development/README.md](https://github.com/pokt-network/pocket/tree/main/docs/development)
73
-
-[ ]***k8s LocalNet**: verify a `k8s LocalNet` is still functioning correctly by following the instructions [here](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md)
73
+
-[ ]**k8s LocalNet**: verify a `k8s LocalNet` is still functioning correctly by following the instructions [here](https://github.com/pokt-network/pocket/blob/main/build/localnet/README.md)
Copy file name to clipboardexpand all lines: build/localnet/README.md
+12-9
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,13 @@ For example:
151
151
152
152
## How to change configuration files
153
153
154
-
Currently, we provide [a config file](./manifests/configs.yaml) that is shared between all validators and a pocket client. We make use of `pocket` client feature that allows us to override configuration via environment variables. You can check a [validator template](./templates/v1-validator-template.yaml.tpl) as a reference.
154
+
Configurations can be changed in helm charts where network protocol actor configs are maintained. You can find them in [this directory](../../charts).
155
+
156
+
`config.json` file is created using the `config` section content in`values.yaml`. For example, you can find the configuration for a validator [here](../../charts/pocket-validator/values.yaml#70).
157
+
158
+
If you need to add a new parameter – feel free to modify the section in place. Some of the parameters that contain secrets (e.g. private key), are stored in Secrets object and injected as environment variables.
159
+
160
+
Please refer to helm charts documentation for more details.
155
161
156
162
## How does it work?
157
163
@@ -205,12 +211,9 @@ build/localnet
205
211
│ │ ├── dashboards.yml
206
212
│ │ └── datasources.yml
207
213
│ └── values.yaml # Configuration values that override the default values of the dependencies, this allows us to connect dependencies together and make them available to our LocalNet services
208
-
├── manifests # Static YAML Kubernetes manifests that are consumed by `tilt`
209
-
│ ├── cli-client.yaml # Pod that has the latest binary of the pocket client. Makefile targets run CLI in this pod.
210
-
│ ├── configs.yaml # Location of the config files (default configs for all validators and a genesis file) that are shared across all actors
211
-
│ ├── network.yaml # Networking configuration that is shared between different actors, currently a Service that points to all validators
212
-
│ └── private-keys.yaml # Pre-generated private keys with a semantic format for easier development
213
-
└── templates # Templates for Kubernetes manifests that are consumed by `tilt`
214
-
├── v1-validator-template.sh # Shell script that generates Kubenetes manifests for validators, consumed by `tilt`
215
-
└── v1-validator-template.yaml.tpl # Template for a single validator, consumed by `v1-validator-template.sh`
214
+
└── manifests # Static YAML Kubernetes manifests that are consumed by `tilt`
215
+
├── cli-client.yaml # Pod that has the latest binary of the pocket client. Makefile targets run CLI in this pod.
216
+
├── configs.yaml # Location of the config files (default configs for all validators and a genesis file) that are shared across all actors
217
+
├── network.yaml # Networking configuration that is shared between different actors, currently a Service that points to all validators
218
+
└── private-keys.yaml # Pre-generated private keys with a semantic format for easier development
# Uncomment in order to expose postgres port to 5432 on the host machine in case the developer wants to connect to postgres directly
191
-
# First port is the port on the host machine, second is the port on the container, so if you already have postgres running on the host machine, you can change the first port to something else
Copy file name to clipboardexpand all lines: build/localnet/manifests/cli-client.yaml
+4-4
Original file line number
Diff line number
Diff line change
@@ -17,13 +17,13 @@ spec:
17
17
spec:
18
18
serviceAccountName: debug-client-account
19
19
initContainers:
20
-
- name: wait-for-v1-validator001
20
+
- name: wait-for-validator-001-pocket-validator
21
21
image: busybox
22
22
command:
23
23
[
24
24
"sh",
25
25
"-c",
26
-
"until nc -z v1-validator001 42069; do echo waiting for v1-validator001...; sleep 2; done;",
26
+
'until wget -q -O - "http://validator-001-pocket-validator:50832/v1/health" --timeout=2 --tries=2 --spider >/dev/null 2>&1; do echo waiting for validator-001-pocket-validator to be online and healthy...; sleep 2; done;',
27
27
]
28
28
containers:
29
29
- name: pocket
@@ -75,7 +75,7 @@ spec:
75
75
value: validator1
76
76
# Any host that is visible and connected to the cluster can be arbitrarily selected as the RPC host
77
77
- name: RPC_HOST
78
-
value: v1-validator001
78
+
value: pocket-validators
79
79
# TECHDEBT(#678): debug client requires hostname to participate
Copy file name to clipboardexpand all lines: build/localnet/manifests/cluster-manager.yaml
+5-2
Original file line number
Diff line number
Diff line change
@@ -4,18 +4,21 @@ metadata:
4
4
name: pocket-v1-cluster-manager
5
5
spec:
6
6
initContainers:
7
-
- name: wait-for-v1-validator001
7
+
- name: wait-for-validator-001-pocket-validator
8
8
image: busybox
9
9
command:
10
10
[
11
11
"sh",
12
12
"-c",
13
-
'until wget -q -O - "http://v1-validator001:50832/v1/health" --timeout=2 --tries=2 --spider >/dev/null 2>&1; do echo waiting for v1-validator001 to be online and healthy...; sleep 2; done;',
13
+
'until wget -q -O - "http://validator-001-pocket-validator:50832/v1/health" --timeout=2 --tries=2 --spider >/dev/null 2>&1; do echo waiting for validator-001-pocket-validator to be online and healthy...; sleep 2; done;',
0 commit comments