Skip to content
Snippets Groups Projects
  • Gurvinder Singh's avatar
    92ce8d48
    [SPARK-15487][WEB UI] Spark Master UI to reverse proxy Application and Workers UI · 92ce8d48
    Gurvinder Singh authored
    ## What changes were proposed in this pull request?
    
    This pull request adds the functionality to enable accessing worker and application UI through master UI itself. Thus helps in accessing SparkUI when running spark cluster in closed networks e.g. Kubernetes. Cluster admin needs to expose only spark master UI and rest of the UIs can be in the private network, master UI will reverse proxy the connection request to corresponding resource. It adds the path for workers/application UIs as
    
    WorkerUI: <http/https>://master-publicIP:<port>/target/workerID/
    ApplicationUI: <http/https>://master-publicIP:<port>/target/appID/
    
    This makes it easy for users to easily protect the Spark master cluster access by putting some reverse proxy e.g. https://github.com/bitly/oauth2_proxy
    
    ## How was this patch tested?
    
    The functionality has been tested manually and there is a unit test too for testing access to worker UI with reverse proxy address.
    
    pwendell bomeng BryanCutler can you please review it, thanks.
    
    Author: Gurvinder Singh <gurvinder.singh@uninett.no>
    
    Closes #13950 from gurvindersingh/rproxy.
    92ce8d48
    History
    [SPARK-15487][WEB UI] Spark Master UI to reverse proxy Application and Workers UI
    Gurvinder Singh authored
    ## What changes were proposed in this pull request?
    
    This pull request adds the functionality to enable accessing worker and application UI through master UI itself. Thus helps in accessing SparkUI when running spark cluster in closed networks e.g. Kubernetes. Cluster admin needs to expose only spark master UI and rest of the UIs can be in the private network, master UI will reverse proxy the connection request to corresponding resource. It adds the path for workers/application UIs as
    
    WorkerUI: <http/https>://master-publicIP:<port>/target/workerID/
    ApplicationUI: <http/https>://master-publicIP:<port>/target/appID/
    
    This makes it easy for users to easily protect the Spark master cluster access by putting some reverse proxy e.g. https://github.com/bitly/oauth2_proxy
    
    ## How was this patch tested?
    
    The functionality has been tested manually and there is a unit test too for testing access to worker UI with reverse proxy address.
    
    pwendell bomeng BryanCutler can you please review it, thanks.
    
    Author: Gurvinder Singh <gurvinder.singh@uninett.no>
    
    Closes #13950 from gurvindersingh/rproxy.