We are trying to run a Spark job on Kubernetes cluster. The Spark job needs to 
talk to some services external to the Kubernetes cluster through a proxy 
server. We are setting the proxy by setting the extraJavaOptions like this

--conf spark.executor.extraJavaOptions=" -Dhttps.proxyHost=myhost 
-Dhttps.proxyPort=8099 -Dhttp.useproxy=true -Dhttps.protocols=TLSv1.2" \
--conf spark.driver.extraJavaOptions="--Dhttps.proxyHost=myhost 
-Dhttps.proxyPort=8099 -Dhttp.useproxy=true -Dhttps.protocols=TLSv1.2" \

The problem is that this forces all communication to go through the proxy. This 
includes the communication between the pods, and between pod and K8s master. 
The proxy is blocking the the traffic that is supposed to stay within the 
cluster, and the job fails

We should be setting noproxy so intra-k8s communication doesn’t go through the 
proxy. The problem is that we don’t know what to put in noproxy. Has anyone run 
Spark on K8s behind proxy?
________________________________________________________

The information contained in this e-mail is confidential and/or proprietary to 
Capital One and/or its affiliates and may only be used solely in performance of 
work or services for Capital One. The information transmitted herewith is 
intended only for use by the individual or entity to which it is addressed. If 
the reader of this message is not the intended recipient, you are hereby 
notified that any review, retransmission, dissemination, distribution, copying 
or other use of, or taking of any action in reliance upon this information is 
strictly prohibited. If you have received this communication in error, please 
contact the sender and delete the material from your computer.

Reply via email to