Install Jenkins on AKS Using Helm And azurefiles Storage Class

Brandon 1 Reputation point


I've been trying to get Jenkins installed on AKS using the community helm chart in Github. I can get it up and running using hostPath to emulate network-attached storage. I can also get it up and running by setting the storage class in the values.yaml to "default" which uses azure-disk but if I try setting the storage class to "azurefiles" Jenkins fails to start up. I can see the pvc and pv is created and bound in the azure portal but I get the following error message from the pod:

"Startup probe failed: Get "": dial tcp connect: connection refused".

From the logs I get the error:

[2021-10-08 14:16:56] Received unknown exception: HTTPConnectionPool(host='localhost', port=8080): Max retries exceeded with url: /reload-configuration-as-code/?casc-reload-token=jenkins-0 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb8da9a64f0>: Failed to establish a new connection: [Errno 111] Connection refused'))

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3/", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/", line 96, in create_connection
raise err
File "/usr/local/lib/python3.8/site-packages/urllib3/util/", line 86, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused

This is the config I've got setup in my values.yaml file:

Has anyone got any ideas as to what I'm missing or how I can config the helm chart to use azure-files as a storage class?

Azure Files
Azure Files
An Azure service that offers file shares in the cloud.
1,216 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,975 questions
{count} votes