Install Jenkins on AKS Using Helm And azurefiles Storage Class

Brandon 1 Reputation point
2021-10-08T14:35:18.847+00:00

Hi,

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 "http://10.244.1.14:8080/login": dial tcp 10.244.1.14:8080: 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/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection
raise err
File "/usr/local/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

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

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,354 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.
2,254 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.