-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
kube-context / kubeconfig not applied #4347
Comments
@MarcoSchaar i was able to reproduce your issue on master
I did some debugging and looks like this line returns a empty config in spite of path being set
This will take some debugging effort. |
The code that handles kube-context and kubeconfig is very convoluted. And for sure, it's buggy. I'm taking a look at how we can fix it |
It's a giant mess. Those parameters can be set with env var, command line arguments, in skaffold.yaml and by profiles. Profiles can be activated based on kubecontext... So they could in theory change the kubecontext based on the kubecontext... Also, the survey link is displayed based on kubecontext. But this often ignores the values passed on the command line and in the skaffold.yaml... |
I think we should deprecated the |
@nkubala I think this is actually a P1. wdyt? |
@dgageot sorry missed this, but yes I agree this is P1, this is quite an annoying UX |
Reducing priority given current commitments. |
Hi @briandealwis |
@MarcoSchaar realistically i don't think we'll have a fix shipped with our 1.14.0 release, so we'll try and target 1.15.0. i'm going to close this issue as a dupe of #4477 since we moved the conversation there, but i promise we're not ignoring you! |
Re-opening: #4477 is a different issue: there, we're not validating the provided kube-context and as |
Problem here is that
|
I think we also poorly support |
Hello. Have the same issue. Is there any way to work with different Kubernetes configs that located not in the one default directory? if i use just --config /myfolder/.kube/config if i use --kubeconfig /myfolder/.kube/config than skaffold deploy app in cluster (/myfolder/.kube/config) but searching pod from cluster with config located in profile folder /user/.kube/config Skaffold Version:v1.17.2 |
Same issue over here. I am super new to k8s and skaffold, but please let me know if I can help in any way to reproduce this. |
I think this is something that should be looked at pretty soon. It is quite confusing as it is right now, and at least for us, it does produce some problems when we try to share deployment procedures between developers. Having to either have people hard-code kubecontext in their skaffold file or have everyone go through the process of adding entries in their .kube/config file is more work that I would like to do. Edit If I place my config file in So I suspect that Edit 2 So a temporary fix for the issue could just be to update the documentation and instead reference the technique to set |
thanks @Gikkman This is the top priority issue for the team and we will looking at in or June Sprint. |
Still have an issue related to this change
I set Here is part of my config in
Seems like it can't read environment variable for kubecontex? |
Expected behavior
commands should be equal or at least one should be stable
Actual behavior
kube-context is rarely taken and deployment is not always working as expected
Information
Steps to reproduce the behavior
skaffold run --profile <profile> --kube-context <clustername> --kubeconfig <path to renamed kube config>
debug log output
The text was updated successfully, but these errors were encountered: