Hello,
I am trying to provision some resources in Azure via terraform. With jenkins helm chart, I want to provision persistent storage that will be used by the jenkins application. All done via terraform.
I am able to create azure storage account, file share successfully as well as the persistent volume and the corresponding volume claims. Then I try to install the jenkins helm release.
It fails with the following error -
Warning: Helm release "jenkins-poc" was created but has a failed status. Use the helm
command to investigate the error, correct it, then run Terraform again.
Here is what I see when I check the logs -
kubectl get events -n jenkins-poc --sort-by='.lastTimestamp'
5m37s Warning FailedMount pod/jenkins-poc-0 (combined from similar events): MountVolume.SetUp failed for volume "jenkins-pocpv" : Couldn't get secret default/***********************************************************
4m15s Warning FailedCreate statefulset/jenkins-poc create Pod jenkins-poc-0 in StatefulSet jenkins-poc failed error: The POST operation against Pod could not be completed at this time, please try again.
4m13s Normal SuccessfulCreate statefulset/jenkins-poc create Pod jenkins-poc-0 in StatefulSet jenkins-poc successful
2m10s Warning FailedMount pod/jenkins-poc-0 Unable to attach or mount volumes: unmounted volumes=[jenkins-home], unattached volumes=[admin-secret jenkins-cache jenkins-home plugins jenkins-poc-token-5rg88 jenkins-config sc-config-volume plugin-dir tmp-volume]: timed out waiting for the condition
4s Warning FailedMount pod/jenkins-poc-0 MountVolume.SetUp failed for volume "jenkins-pocpv" : Couldn't get secret default/**************************************************************
It seems to me that it is complaining about not able to get the secret. This is the secret, I have used when creating the volume that I grabbed from the "Storage account" -> "Access Keys".
Can you please help in resolving this issue?
Best regards