spark-operator icon indicating copy to clipboard operation
spark-operator copied to clipboard

Support dnsPolicy and dnsConfigs for operator and webhook in Helm chart.

Open messerzen opened this issue 1 year ago • 3 comments

Hello. I'm trying to use the spark-on-k8s-operator using a different dnsConfig and dnsPolicy due to some restrictions and limitations of k8s cluster that I'm using.

Something like this in values.yaml of helm chart:

dnsConfig:
          nameservers:
          - XXX.XX.X.XXX
dnsPolicy: ClusterFirstWithHostNet

This is necessary because, in my case, if I don't set dnsPolicy: ClusterFirstWithHostNet for the pods in my cluster, it's not solving the dns kubernetes.default.svc used to initialize the webhook. The image below shows the error if I don't set dnsPolicy: ClusterFirstWithHostNet (it happens for both init-webhook and clean-up-webhook)

image

I need to use the webhook activated in order to some customizations in SparkApplication take effect (like also, configure dnsConfig and dnsPolicy) for driver and executors, otherwise, it will not take effect.

Thanks!

messerzen avatar Mar 02 '24 19:03 messerzen

I'm having the same issue, any updates on this?

leticiasss avatar Apr 02 '24 12:04 leticiasss

Hi @leticiasss. In my case, the k8s cluster network was fixed and it started to work ( the webhook ). I think one possible workaround for it is to generate the yaml mafinests files from the helm chart, edit the manifests network configs and deploy it manually.

messerzen avatar Apr 08 '24 23:04 messerzen

Hi @messerzen. Thank you for updated. Initially the installation unsuccessful, but did it again, then worked as expected.

leticiasss avatar Apr 12 '24 14:04 leticiasss

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Jul 24 '24 20:07 github-actions[bot]

This issue has been automatically closed because it has not had recent activity. Please comment "/reopen" to reopen it.

github-actions[bot] avatar Aug 14 '24 00:08 github-actions[bot]