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

Issue Running the provider #4

Open
mornindew opened this issue Jul 3, 2019 · 1 comment
Open

Issue Running the provider #4

mornindew opened this issue Jul 3, 2019 · 1 comment

Comments

@mornindew
Copy link

Thank you very much for supporting this as it is very useful for my needs. I really appreciate it.

I am having an issue running the provider though. I recently migraged from the ericchiang version over to yours but now when I run any commands I get:

* k8s_manifest.cluster-issuer: /home/craig/Applications/google-cloud-sdk/bin/kubectl kubectl --kubeconfig /tmp/kubeconfig_238694190 apply -f - exit status 1: error: Error loading config file "/tmp/kubeconfig_238694190": couldn't get version/kind; json parse error: json: cannot unmarshal string into Go value of type struct { APIVersion string "json:\"apiVersion,omitempty\""; Kind string "json:\"kind,omitempty\"" }

Not sure why it is looking for the kubeconfig in /tmp

I have specified my kubeconfig_content:

provider "k8s" {
  kubeconfig_content = "${var.kubeconfigLocation}"
}

And that points to my ~/.kube/config

Did I misconfigure something? Thank you!

@sagikazarmark
Copy link
Member

@mornindew I'm terribly sorry for missing your issue. I hope you were able to resolve it.

If not:

kubeconfig_content awaity the contents of your kube config.

So either load the contents of the file or use the kubeconfig parameter to just provide a file path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants