-
Notifications
You must be signed in to change notification settings - Fork 979
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
kubernetes_manifest might not be respecting KUBE_PROXY_URL
#1733
Comments
This may the case that I'm still using a data source to configure the provider since this has to occur during the plan stage? Will close as a duplicate if so once I get a chance to check. |
I'm still encountering the issue specifically with provider "kubernetes" {
config_path = "~/.kube/config"
config_context = var.kubernetes_context
} |
We also hit this issue with basically the same setup. We also use a GKE private cluster and IAP tunnels to SSH on a bastion with tinyproxy on it. It works for everything non |
Just encountered this too. The curious thing is, while Lookups for both terraform-provider-kubernetes/manifest/provider/configure.go Lines 492 to 508 in 73e2558
|
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you! |
Same issue here We had to instead use the |
This turned out to be caused by an embarrassing typo. Fix in above mentioned PR. 🤦 |
I suspect that operations that implement the
kubernetes_manifest
is attempting to connect to non-routable IP from my local machine by not using the port-forwarded https proxy that I defined withKUBE_PROXY_URL
. Creating akubernetes_namespace
with this setup works fine. My module withkubernetes_manifest
resources works fine in a development cluster that has publicly accessible nodes and API endpoint without aKUBE_PROXY_URL
defined.I guess the workaround I'll have to try is converting the manifests to HCL.
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
kubernetes_manifest
Terraform Configuration Files
Relevant configuration section:
Steps to Reproduce
tinyproxy
.-L 8888:localhost:8888
)KUBE_PROXY_URL="http://localhost:8888" terraform ...
.Expected Behavior
Terraform should be able to create all kinds of kubernetes resources.
Actual Behavior
I can create a
kubernetes_namespace
, but when setting up third-party services likecert-manager
throughkubernetes_manifest
resources that created withyamldecode(file(...))
, I get errors like the following:References
kubernetes_namespace
resources works fineCommunity Note
The text was updated successfully, but these errors were encountered: