When use rancher is there any solution auto set port forwarding?

hello, everyone.

i need help.
working well when i set port forwarding manually.
but after re-start pc or program all port forwarding change to shut.

is there are any solution make rancher port forwarding get fixed?

  • after re-start port close like blue box
  • i want recover information after re-start like red box

plz help me
thx.

That depends…

I would use Ingress resources anyway to expose any http(s) endpoints, as this combines nicely with external-dns and cert-manager.

Otherwise just configure the correct port type, you want NodePort or LoadBalancer, not ClusterIP.

Thanks for the good advice. I solved it using LoadBalancer.