I am planning to setup jenkins pipeline on K8S using terraform to provising my CI/CD environment.
I am using Terraform v0.12.18
My terraform file has following resource
resource "helm_release" "jenkins-master" {
name = "jenkins"
chart = "jenkins"
version = "7.0.3"
repository = "https://charts.bitnami.com/bitnami"
set {
name = "jenkinsUser"
value = "admin"
}
set {
name = "jenkinsPassword"
value = "admin"
}
}
When I ran terraform apply -input=false provision-plan
I am getting following error.
Error: failed to download "https://charts.bitnami.com/bitnami/jenkins-7.0.3.tgz" (hint: running `helm repo update` may help)
But when I ran direct helm install using
helm install my-jenkins bitnami/jenkins --version 7.0.3
then jenkins get install.
If I click on the linke https://charts.bitnami.com/bitnami/jenkins-7.0.3.tgz then also I am able to download the chart.
Can someone please helm to find the issue ?
Thanks Alpesh
The issue is caused because helm-terraform-provider uses
verify = trueby default.The equivalent helm command would be
Which will triggers the following error:
This is an issue with the upstream chart and we are looking into it.
As a temporary workaround, setting
verify = falseshould fix the issue.If the problem persists, adding HELM_DEBUG=1 to your terraform apply command would provide helpful information to determine the root cause of the issue.