Skip to content

Commit

Permalink
Merge pull request #16 from pokt-network/feat/enable-grpc
Browse files Browse the repository at this point in the history
feat: Enable gRPC port
  • Loading branch information
red-0ne authored Dec 12, 2023
2 parents fff6f3b + 3baeec2 commit 6d61518
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions charts/poktroll-sequencer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ spec:
name: rpc
- containerPort: 40004 # TODO(@okdas): remove this - currently only needed for LocalNet dlv
name: debug
- containerPort: {{ .Values.service.grpcPort }}
name: grpc
livenessProbe:
httpGet:
path: /
Expand Down
4 changes: 2 additions & 2 deletions charts/poktroll-sequencer/templates/scripts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ data:
# start the node
# You can attach to this process with delve (dlv) for debugging purpose with `dlv attach $(pgrep poktrolld) --listen :40004 --headless --api-version=2 --accept-multiclient` - run inside the container!
poktrolld start --rollkit.aggregator=true --rollkit.da_layer=celestia --rollkit.da_config='{"base_url":"http://{{ .Values.dataAvailability.celestia.hostname }}:26658","timeout":60000000000,"fee":600000,"gas_limit":6000000,"auth_token":"'$AUTH_TOKEN'"}' --rollkit.namespace_id=$NAMESPACE --rollkit.da_start_height=$DA_BLOCK_HEIGHT --rpc.laddr=tcp://0.0.0.0:36657 --p2p.laddr="0.0.0.0:36656"
poktrolld start --rollkit.aggregator=true --rollkit.da_layer=celestia --rollkit.da_config='{"base_url":"http://{{ .Values.dataAvailability.celestia.hostname }}:26658","timeout":60000000000,"fee":600000,"gas_limit":6000000,"auth_token":"'$AUTH_TOKEN'"}' --rollkit.namespace_id=$NAMESPACE --rollkit.da_start_height=$DA_BLOCK_HEIGHT --rpc.laddr=tcp://0.0.0.0:36657 --p2p.laddr="0.0.0.0:36656" --grpc.address=0.0.0.0:36658
# OR debug the node (uncomment this line but comment previous line)
# dlv exec /usr/local/bin/poktrolld --listen :40004 --headless --api-version=2 --accept-multiclient -- start --rollkit.aggregator=true --rollkit.da_layer=celestia --rollkit.da_config='{"base_url":"http://{{ .Values.dataAvailability.celestia.hostname }}:26658","timeout":60000000000,"fee":600000,"gas_limit":6000000,"auth_token":"'$AUTH_TOKEN'"}' --rollkit.namespace_id=$NAMESPACE --rollkit.da_start_height=$DA_BLOCK_HEIGHT --rpc.laddr=tcp://0.0.0.0:36657 --p2p.laddr="0.0.0.0:36656"
# dlv exec /usr/local/bin/poktrolld --listen :40004 --headless --api-version=2 --accept-multiclient -- start --rollkit.aggregator=true --rollkit.da_layer=celestia --rollkit.da_config='{"base_url":"http://{{ .Values.dataAvailability.celestia.hostname }}:26658","timeout":60000000000,"fee":600000,"gas_limit":6000000,"auth_token":"'$AUTH_TOKEN'"}' --rollkit.namespace_id=$NAMESPACE --rollkit.da_start_height=$DA_BLOCK_HEIGHT --rpc.laddr=tcp://0.0.0.0:36657 --p2p.laddr="0.0.0.0:36656" --grpc.address=0.0.0.0:36658
4 changes: 4 additions & 0 deletions charts/poktroll-sequencer/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ spec:
name: rpc
port: 36657
targetPort: 36657
- protocol: TCP
name: grpc
port: 36658
targetPort: 36658
3 changes: 2 additions & 1 deletion charts/poktroll-sequencer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ image:
service:
type: ClusterIP
rpcPort: 36657
grpcPort: 36658
pvc:
accessModes:
accessModes:
- ReadWriteOnce
requests:
storage: 1Gi
Expand Down

0 comments on commit 6d61518

Please sign in to comment.