Skip to content

Comments

Configurable ports when service type is NodePort#788

Open
Jhoyola wants to merge 2 commits intobitcoin-dev-project:mainfrom
Jhoyola:configurable-nodeports
Open

Configurable ports when service type is NodePort#788
Jhoyola wants to merge 2 commits intobitcoin-dev-project:mainfrom
Jhoyola:configurable-nodeports

Conversation

@Jhoyola
Copy link

@Jhoyola Jhoyola commented Feb 17, 2026

For a simple and static way to connect to the node RPCs from host machine, the service type can be set to "NodePort". This PR makes it possible to fix static ports for each node to preconfigure a development environment based on warnet.

@pinheadmz
Copy link
Contributor

I think mechanically this is the right choice to get remote access to each pod individually. It seems more correct and kubernetes-y than #686 which addresses the same goal.

Questions:

  • How does the local user get the IP:port of the pod they want to connect to?
  • How does this work in a large scale cluster with multiple kubernetes nodes, multiple pods on each node?

@Jhoyola
Copy link
Author

Jhoyola commented Feb 18, 2026

  • How does the local user get the IP:port of the pod they want to connect to?

User would add the below to the node on their network configuration. Then it's accessible at localhost:30443. I added documentation about this. Also added a small section about kubectl port-forward similar to #686 but without a warnet command.

    service:
      type: NodePort
      rpcNodePort: 30443
  • How does this work in a large scale cluster with multiple kubernetes nodes, multiple pods on each node?

Haven't tested it, but according to Kubernetes docs it works just as: <kubernetes-node-ip>:<exposed-port>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants