[go: nahoru, domu]

Skip to content
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

Load in-cluster config in tf.distribute.cluster_resolver.KubernetesClusterResolver #50449

Open
yanp opened this issue Jun 25, 2021 · 0 comments
Assignees
Labels
comp:dist-strat Distribution Strategy related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.5 Issues related to TF 2.5 type:bug Bug

Comments

@yanp
Copy link
yanp commented Jun 25, 2021

System information

  • TensorFlow version (use command below): 2.5.0

Describe the current behavior

Currently the KubernetesClusterResolver class can only load configs from kube-config file:

https://github.com/tensorflow/tensorflow/blob/v2.5.0/tensorflow/python/distribute/cluster_resolver/kubernetes_cluster_resolver.py#L97

Describe the expected behavior

When running in worker pods in cluster, we want to be able to load configs using .load_incluster_config() (example)

We can't use the override_client arg with kubernetes package either, because once installed the ImportError does not happen

Contributing

  • Do you want to contribute a PR? (yes/no):

    Yes

  • Briefly describe your candidate solution(if contributing):

    Try to do k8sconfig.load_incluster_config() first, if failed then do k8sconfig.load_kube_config()

@yanp yanp added the type:bug Bug label Jun 25, 2021
@UsharaniPagadala UsharaniPagadala added comp:dist-strat Distribution Strategy related issues TF 2.5 Issues related to TF 2.5 type:docs-feature Doc issues for new feature, or clarifications about functionality and removed type:bug Bug labels Jun 25, 2021
@Saduf2019 Saduf2019 assigned ymodak and unassigned Saduf2019 Jun 28, 2021
@ymodak ymodak added type:bug Bug stat:awaiting tensorflower Status - Awaiting response from tensorflower and removed type:docs-feature Doc issues for new feature, or clarifications about functionality labels Jun 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:dist-strat Distribution Strategy related issues stat:awaiting tensorflower Status - Awaiting response from tensorflower TF 2.5 Issues related to TF 2.5 type:bug Bug
Projects
None yet
Development

No branches or pull requests

4 participants