kubeflow / spark-operator

Kubernetes operator for managing the lifecycle of Apache Spark applications on Kubernetes.
Apache License 2.0
2.81k stars 1.38k forks source link

driver initContainers Not effective ,How do you use it? #1654

Closed lizu18xz closed 3 months ago

lizu18xz commented 1 year ago

driver: cores: 1 coreLimit: "1200m" memory: "512m" labels: version: 3.1.1 serviceAccount: spark volumeMounts:

Elsayed91 commented 1 year ago

I recently tried a gitsync init container and it was not being recognized either.

rangnar14 commented 1 year ago

We are also trying to use initContainer. But Looks like its not being recognized. webhook was enabled as mentioned in the docs. We are using the helm charts 1.1.26 releae.

sam-som commented 1 year ago

I was seeing a similar issue with our sparkapplication where the initContainers were defined in the yaml file but was not getting created in the pod. For us, the root cause was the webhook not being enabled on that particular cluster.

You can check to see if the webhook is working by checking the log of spark-operator The spark-operator should frequently be logging webhook.go:247] Serving admission request

If you need to setup webhook, here's the instruction https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/docs/quick-start-guide.md#about-the-mutating-admission-webhook

yougyoung94 commented 1 year ago

Same issue here

Using spark-operator chart 1.1.27

With webhook.enable=true set, the spark-operator pod gives only the following logs

0530 01:40:21.154915      10 webhook.go:219] Starting the Spark admission webhook server
I0530 01:40:21.158751      10 webhook.go:424] Creating a MutatingWebhookConfiguration for the Spark pod admission webhook

No sign of webhook.go:247] Serving admission request :(

And the pod created by SparkApplication shows no sign of initContainer

rahulbhatia2702 commented 1 year ago

was anyone able to get this working?

ChengJie1053 commented 1 year ago

@lizu18xz Hello, was the problem solved later

github-actions[bot] commented 3 months ago

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] commented 3 months ago

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

karanalang commented 1 month ago

/reopen

google-oss-prow[bot] commented 1 month ago

@karanalang: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to [this](https://github.com/kubeflow/spark-operator/issues/1654#issuecomment-2395199571): >/reopen Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
karanalang commented 1 month ago

i'm having the same issue .. initContainer is not being recognized .. how to fix this ?