Closed
Description
Overview
Currently we are using kubectl port-forward
to get access to the RPC ports and expose the chains. We relay on this for both local as well as remote cluster on a k8s digital ocean.
Proposal
Inorder to unify the experince of everyone down the line, we dont expect people to use kubectl
at all. The proposal here is to use ingress to expose the RPC ports for various chains. We can use the following ingress
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: node-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx-example
rules:
- host: "rpc.osmosis-1.starship.one"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: osmosis-1-genesis
port:
number: 26657
- host: "rest.osmosis-1.starship.one"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: osmosis-1-genesis
port:
number: 1317
There are a coupld of considerations to be made here:
- Do we want to expose all the validator nodes independently with ingress,
rpc.<node>.<chain>.shuttle.one
? - New service per validator node?
- TLS need to end on ingress for remote
For local setup, need to map the hosts to the IPs and for remote need to create cloudflare rules with tls ending secrets.
Metadata
Metadata
Assignees
Labels
No labels