Install Jenkins on AKS Using Helm And azurefiles Storage Class
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:
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?