I found an easy way to conquer this issue. (1:expose Service 2:Expose pod)
Example 1: expose Service kubectl port-forward --address 0.0.0.0 service/app 8881:8888
Reference: Forward a local port to a port on the Pod
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.