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