kevin85421 opened a new pull request #588:
URL: https://github.com/apache/submarine/pull/588


   ### What is this PR for?
   Execute the following command via Golang out-of-cluster
   ```
   kubectl port-forward --address 0.0.0.0 -n ${Your_Namespace} service/traefik 
32080:80
   ```
   
   Reference: 
   (1) https://gianarb.it/blog/programmatically-kube-port-forward-in-go
   (2) https://github.com/minio/operator/blob/master/kubectl-minio/cmd/proxy.go
   
   ### What type of PR is it?
   [Feature]
   
   ### Todos
   * Execute port-forwarding automatically with Golang in-cluster
        *  The function `k8sutil.ServicePortForwardPort(context.TODO(), 
namespace, "traefik", 32080, 80, color.FgGreen)` does not work in-cluster.
        * (In submarine-operator pod) `curl 127.0.0.1:32080` --> Yes
        * (Local Chrome browser) 127.0.0.1:32080 --> 404
        * We need to forward the request from 127.0.0.1:32080 to the 
submarine-operator pod.
   
   
   
   ### What is the Jira issue?
   https://issues.apache.org/jira/browse/SUBMARINE-824
   
   ### How should this be tested?
   
https://user-images.githubusercontent.com/20109646/118227081-86001080-b4ba-11eb-9274-6a053954f5f7.mov
   
   
   
   ### Screenshots (if appropriate)
   
   ### Questions:
   * Do the license files need updating? No
   * Are there breaking changes for older versions? No
   * Does this need new documentation? No
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to