1
1
# Terraform Node Module
2
2
3
- This module helpers you create RSS3 DSL Node with cockroachdb , redis, and other services easily.
3
+ This module helpers you create RSS3 DSL Node with AlloyDB , redis, and other services easily.
4
4
The resources/services/activations/deletions that this module will create/trigger are:
5
5
6
- - Create cockroachdb helm chart release
7
6
- Create node helm chart release
8
7
9
8
## Compatibility
@@ -16,19 +15,6 @@ This module is meant for use with Terraform 0.14.
16
15
module "node" {
17
16
source = "RSS3-Network/node/kubernetes"
18
17
19
- crdb_disk_size = "500Gi"
20
- crdb_storage_class = "premium-rwo"
21
- crdb_resources = {
22
- requests = {
23
- cpu = "8"
24
- memory = "32Gi"
25
- }
26
- limits = {
27
- cpu = "8"
28
- memory = "32Gi"
29
- }
30
- }
31
-
32
18
node_workers = [
33
19
{
34
20
id = "crossbell",
@@ -37,6 +23,8 @@ module "node" {
37
23
endpoint = "https://rpc.crossbell.io"
38
24
}
39
25
]
26
+
27
+ database_uri = "postgres://node:node@alloydb:5432/node"
40
28
}
41
29
```
42
30
@@ -51,30 +39,21 @@ More examples can be found in the [examples](./examples) directory.
51
39
52
40
## Inputs
53
41
54
- | Name | Description | Type | Default | Required |
55
- | ------------------------- | ------------------------------------------------------- | ---------------------------------------------- | --------------------------------------------------------------------------------- | :------: |
56
- | namespace | The namespace to deploy the application and cockroachdb | string | default | no |
57
- | crdb_storage_class | kubernetes storage class for cockroachdb | string | "" | no |
58
- | crdb_disk_size | The size of the disk for the cockroachdb | string | 100Gi | no |
59
- | crdb_replicas | The number of cockroachdb replicas | number | 3 | no |
60
- | crdb_resources | The resources for the cockroachdb | map(object({ cpu = string memory = string })) | { requests = { cpu = "2" memory = "8Gi" } limits = { cpu = "2" memory = "8Gi" } } | no |
61
- | crdb_extra_settings | The extra helm set flags | list(object({ name = string value = string })) | [ ] | no |
62
- | crdb_values | The extra values for the cockroachdb | list(string) | [ ] | no |
63
- | crdb_user | The user for the cockroachdb | string | roach | no |
64
- | crdb_password | Leave empty to create a random password | string | "" | no |
65
- | crdb_database | The database for the cockroachdb | string | node | no |
66
- | redis_enable | | bool | false | no |
67
- | redis_endpoint | | string |
68
- | redis_username | | string | "" | no |
69
- | redis_password | | string | "" | no |
70
- | node_replicas | node http server replicas | number | 3 | no |
71
- | node_rpc_endpoints | rpc endpoints with http headers and http2 options | map(** endpoint** ) | {} | no |
72
- | node_workers | The workers for the node | list(** worker** ) })) | | yes |
73
- | node_values | The extra values for the node | list(string) | [ ] | no |
74
- | node_register | Register the node with the network | bool | true | no |
75
- | node_register_evm_address | The evm address to register the node with | string | "" | no |
76
- | node_register_gi_address | The gi address to register the node with | string | "https://gi.rss3.io/" | no |
77
- | node_http_endpoint | The http endpoint for the node | string | "" | no |
42
+ | Name | Description | Type | Default | Required |
43
+ | ------------------------- | ------------------------------------------------- | ----------------- | ----------------------- | :------: |
44
+ | namespace | The namespace to deploy the application | string | default | no |
45
+ | redis_enable | | bool | false | no |
46
+ | redis_endpoint | | string | | |
47
+ | redis_username | | string | "" | no |
48
+ | redis_password | | string | "" | no |
49
+ | node_replicas | node http server replicas | number | 3 | no |
50
+ | node_rpc_endpoints | rpc endpoints with http headers and http2 options | map(** endpoint** ) | {} | no |
51
+ | node_workers | The workers for the node | list(** worker** ) | | yes |
52
+ | node_values | The extra values for the node | list(string) | [ ] | no |
53
+ | node_register | Register the node with the network | bool | true | no |
54
+ | node_register_evm_address | The evm address to register the node with | string | "" | no |
55
+ | node_register_gi_address | The gi address to register the node with | string | "< https://gi.rss3.io/ > " | no |
56
+ | node_http_endpoint | The http endpoint for the node | string | "" | no |
78
57
79
58
### complicated object structure
80
59
0 commit comments