-
Notifications
You must be signed in to change notification settings - Fork 986
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
Provider doesn't work without kubecontext in some clusters #645
Comments
if you downgrade the kubernetes provider to 1.9.0 you solve the problem cuz it's the provider >= 1.10.0 |
Investigation note: docs require improvement at https://www.terraform.io/docs/providers/google/guides/using_gke_with_terraform.html#using-the-kubernetes-and-helm-providers |
Related note: here's a test I did today with static configuration of a GKE cluster. There's a chance a variable like Offhand, in this specific issue, I would suspect a problem with the I do see this usage listed in the google provider's docs, but I'm not sure if that is the right token to actually use here. The token returned by The example I linked above might provide a work-around in the meantime. |
There have been some changes to authentication in version 2.0.2, and some incoming changes to fix #1179 will help in identifying the configuration that is causing this issue. Given that this issue is fairly old, and that we haven't seen any activity by the original poster, I'm thinking we should close it for now. But here is some information that might help: Most likely, one of the data sources became unknown during the plan phase. When either We do have an example for GKE which demonstrates separating the two into modules. It might provide some guidance about how to best approach these problems, depending on if you're replacing the cluster or making other modifications to it. I'm going to close this issue for now, since it is something we're tracking in many other issues and upstream. It should resolve with #1179. But feel free to reopen if I've misunderstood the problem or if it's still ongoing even with the GKE infrastructure separated out from the Kubernetes infrastructure. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hi there,
We have several kubernetes clusters in GKE, the problem is reproduced only in one of the clusters. Although in fact there is no difference in setting up kubernetes providers in all clusters.
The bottom line is that we wanted to configure the creation of resources in a kubernetes cluster without kubecontext, but we succeeded in all clusters except one.
Terraform Version
Terraform v0.12.9
Affected Resource(s)
unknown
Terraform Configuration Files
Debug Output
i can't provide full debug output because there are sensitive information.
Maybe you will say me what pieces need to check, i will try to do that.
Panic Output
Expected Behavior
Actual Behavior
Steps to Reproduce
This we did before, the configuration file was exactly the same as I presented above, except for the option
load_config_file = false
. Successful creation of resources occurs only if the kubecontext is configured to connect to ANY cluster in one Google project.If the kubecontext is configured to connect to another project, an error occurred
Error: Unauthorized
.load_config_file = false
to eliminate the use of kubecontext. In another clusters it works, except one where we got an error.terraform plan
Important Factoids
References
The text was updated successfully, but these errors were encountered: