Skip to content

Commit

Permalink
cosmos-sdk defaults (#37)
Browse files Browse the repository at this point in the history
* cosmo-sdk defaults

* by default, grpc port is only exposed to the local interface
  • Loading branch information
okdas authored Jun 21, 2024
1 parent a96739b commit 45614c4
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
12 changes: 6 additions & 6 deletions charts/appgate-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ config:
listening_endpoint: http://0.0.0.0:42069
# Pocket node URL that exposes CometBFT JSON-RPC API.
# This can be used by the Cosmos client SDK, event subscriptions, etc...
query_node_rpc_url: tcp://poktroll-validator:36657
query_node_rpc_url: tcp://poktroll-validator:26657
# Pocket node URL that exposes the Cosmos gRPC service, dedicated to querying purposes.
query_node_grpc_url: tcp://poktroll-validator:36658
query_node_grpc_url: tcp://poktroll-validator:9090
metrics:
enabled: true
# If changing port here, make sure to adjust `metrics.serviceMonitor.port`
Expand Down Expand Up @@ -83,10 +83,10 @@ ingress:
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
Expand Down
6 changes: 3 additions & 3 deletions charts/poktroll-validator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ spec:
args:
{{ end }}
- start
- --rpc.laddr=tcp://0.0.0.0:36657
- --p2p.laddr=0.0.0.0:36656
- --grpc.address=0.0.0.0:36658
# - --rpc.laddr=tcp://0.0.0.0:36657 # 26657 is the default
# - --p2p.laddr=0.0.0.0:36656 # 26656 is the default
- --grpc.address=0.0.0.0:9090 # 9090 is the default
- --log_no_color
- --log_level={{ .Values.logs.level }}
- --log_format={{ .Values.logs.format }}
Expand Down
9 changes: 4 additions & 5 deletions charts/poktroll-validator/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

apiVersion: v1
kind: Service
metadata:
Expand All @@ -11,12 +10,12 @@ spec:
ports:
- protocol: TCP
name: rpc
port: 36657
targetPort: 36657
port: 26657
targetPort: 26657
- protocol: TCP
name: grpc
port: 36658
targetPort: 36658
port: 9090
targetPort: 9090
- port: 1317
targetPort: api
protocol: TCP
Expand Down
4 changes: 2 additions & 2 deletions charts/poktroll-validator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ image:
pullPolicy: IfNotPresent
service:
type: ClusterIP
rpcPort: 36657
grpcPort: 36658
rpcPort: 26657
grpcPort: 9090
timeout: 60000000000
fee: 600000
gas_limit: 6000000
Expand Down
4 changes: 2 additions & 2 deletions charts/poktrolld/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ serviceP2P:
service:
type: ClusterIP
ports:
rpc: 36657
grpc: 36658
rpc: 26657
grpc: 9090
api: 1317
cometBFTMetrics: 26660

Expand Down
6 changes: 3 additions & 3 deletions charts/relayminer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ config:
default_signing_key_names: [supplier1]
smt_store_path: smt_stores
pocket_node:
query_node_rpc_url: tcp://poktroll-validator:36657
query_node_grpc_url: tcp://poktroll-validator:36658
tx_node_rpc_url: tcp://poktroll-validator:36657
query_node_rpc_url: tcp://poktroll-validator:26657
query_node_grpc_url: tcp://poktroll-validator:9090
tx_node_rpc_url: tcp://poktroll-validator:26657
suppliers:
- service_id: anvil
type: http
Expand Down

0 comments on commit 45614c4

Please sign in to comment.