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

Tiller image is not installed #50

Closed
mkubik opened this issue Feb 26, 2018 · 5 comments
Closed

Tiller image is not installed #50

mkubik opened this issue Feb 26, 2018 · 5 comments

Comments

@mkubik
Copy link

mkubik commented Feb 26, 2018

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

  • Terraform v0.11.3

Affected Resource(s)

Please list the resources as a list, for example:

  • helm provider

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

provider "helm" {
  debug                     = "true"
  tiller_image              = "gcr.io/kubernetes-helm/tiller:v2.8.1"
  kubernetes {
      config_path           = "${var.config_file_path}"
  }
}

Debug Output

  • n/a

Panic Output

  • n/a

Expected Behavior

tiller should have been deployed

Actual Behavior

tiller was not deployed, resulting in

Error: Error applying plan:

1 error(s) occurred:

* helm_chart.helmchart: 1 error(s) occurred:

* helm_chart.helmchart: error installing: Post http://localhost/apis/extensions/v1beta1/namespaces/kube-system/deployments: dial tcp [::1]:80: getsockopt: connection refused

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

  • none

References

  • none
@mcuadros
Copy link
Collaborator

The problem is that can't connect to the k8s, looks like your credentials a wrong

@mkubik
Copy link
Author

mkubik commented Feb 26, 2018

Interesting, you're right. I now used a different config, now I get

Error: Error applying plan:

1 error(s) occurred:

* helm_chart.helmchart: 1 error(s) occurred:

* helm_chart.helmchart: error creating tunnel: "could not find a ready tiller pod"

with the same tf config.

@mkubik
Copy link
Author

mkubik commented Feb 27, 2018

found

container "tiller" in pod "tiller-deploy-675678b54-s54n6" is waiting to start: trying and failing to pull image

in the logs. investigating...

@mkubik
Copy link
Author

mkubik commented Feb 27, 2018

works now, looks like it doesn't like
tiller_image = "gcr.io/kubernetes-helm/tiller:latest"
bur rather
tiller_image = "gcr.io/kubernetes-helm/tiller:v2.8.1"

Also, running terraform plan on a cluster without helm installed will fail as it is actively looking for tiller.

@dminca
Copy link

dminca commented Apr 14, 2019

The error is caused by the Tiller Pod that's not up and running yet.
A sleep 5 must be configured to enable the Pod to finish booting before issuing any future Helm commands...

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants