-
Notifications
You must be signed in to change notification settings - Fork 28.8k
[SPARK-23146][WIP] Support client mode for Kubernetes in Out-Cluster mode #20451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
26a0126
[WIP] initial changes for the client mode support
echarles e75c8ff
Merge branch 'master' into k8s-client-mode
echarles 66a07eb
fix ExecutorPodFactory build failure
echarles 5e05410
fix build
echarles 3985bc6
allow client mode
echarles d3b2ec4
don't use cacert nor token in client mode
echarles d102ac2
don't use oauth token in client mode
echarles 136e957
Merge branch 'master' into k8s-client-mode
echarles a07c9df
update further to #20910 Refactor to unify driver and executor pod bu…
echarles 3164fa6
Merge branch 'master' into k8s-client-mode
echarles 11c1ea5
format
echarles a248675
add back waitForAppCompletion
echarles 58ca9ab
remove legacy APISERVER_AUTH_DRIVER_MOUNTED_CONF_PREFIX
echarles 4022277
move OptionRequirements to KubernetesUtils
echarles e8b54a4
Merge branch 'master' into k8s-client-mode
echarles 13fa7b2
add basic doc for client mode
echarles ab992ca
remove duplicat method on kubernetestutils
echarles File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name of this prefix
spark.kubernetes.authenticate.driver.mounted
sounds weird in this case given that the client is running outside the cluster. BTW: can we alternatively use the config at$HOME//.kube/config
to build a kubernetes client instead? I think this is a common approach for building clients outside a cluster.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the call to
createKubernetesClient
is not used in two different ways:KUBERNETES_AUTH_DRIVER_MOUNTED_CONF_PREFIX
is used inKubernetesClusterManager
KUBERNETES_AUTH_SUBMISSION_CONF_PREFIX
is used inKubernetesClientApplication
I would favor the second and remove the first.
For the config place, I remember that the fabric8 k8s client does also some inspection to see if it is in or out cluster, and loads the config form the default place (depending the case), with possiblity to specify other places for the cert, token... (this is what we give as property to the end-user).