Getting error while starting a jupyterlab instance using k8s

chart version is 2.0.0
the username for the user is QQRADEH23AK8FAZ8_AX4-user
when creating the pod this is being converted to jupyter–51-51-52-41-44-45-4823-41-4b8-46-41-5a8-5f-41-584-2duser
How do I resolve this?
logs

hub [I 2022-09-16 04:00:43.843 JupyterHub provider:651] Creating oauth client jupyterhub-user-QQRADEH23AK8FAZ8_AX4-user
hub [I 2022-09-16 04:00:43.883 JupyterHub spawner:2469] Attempting to create pod jupyter--51-51-52-41-44-45-4823-41-4b8-46-41-5a8-5f-41-584-2duser, with timeout 3
hub [E 2022-09-16 04:00:43.927 JupyterHub spawner:2487] Failed for {'api_version': 'v1',
hub      'kind': 'Pod',
hub      'status': None}
hub     Traceback (most recent call last):
hub       File "/usr/local/lib/python3.9/site-packages/kubespawner/spawner.py", line 2472, in _make_create_pod_request
hub         await asyncio.wait_for(
hub       File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for
hub         return fut.result()
hub       File "/usr/local/lib/python3.9/site-packages/kubernetes_asyncio/client/api_client.py", line 192, in __call_api
hub         raise e
hub       File "/usr/local/lib/python3.9/site-packages/kubernetes_asyncio/client/api_client.py", line 185, in __call_api
hub         response_data = await self.request(
hub       File "/usr/local/lib/python3.9/site-packages/kubernetes_asyncio/client/rest.py", line 230, in POST
hub         return (await self.request("POST", url,
hub       File "/usr/local/lib/python3.9/site-packages/kubernetes_asyncio/client/rest.py", line 187, in request
hub         raise ApiException(http_resp=r)
hub     kubernetes_asyncio.client.exceptions.ApiException: (422)
hub     Reason: Unprocessable Entity
hub     HTTP response headers: <CIMultiDictProxy('Audit-Id': '60bb3d42-24b3-47f5-8d29-f40ce9a6c5f0', 'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'X-Kubernetes-Pf-Flowschema-Uid': '6e06f62f-e18d-4f46-b9e6-7ca4bd00ea09', 'X-Kubernetes-Pf-Prioritylevel-Uid': '87e1fdb0-9e24-40c8-bf47-03868702cc34', 'Date': 'Fri, 16 Sep 2022 04:00:43 GMT', 'Content-Length': '1102')>
hub     HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"Pod \"jupyter--51-51-52-41-44-45-4823-41-4b8-46-41-5a8-5f-41-584-2duser\" is invalid: metadata.labels: Invalid value: \"-51-51-52-41-44-45-4823-41-4b8-46-41-5a8-5f-41-584-2duser\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')","reason":"Invalid","details":{"name":"jupyter--51-51-52-41-44-45-4823-41-4b8-46-41-5a8-5f-41-584-2duser","kind":"Pod","causes":[{"reason":"FieldValueInvalid","message":"Invalid value: \"-51-51-52-41-44-45-4823-41-4b8-46-41-5a8-5f-41-584-2duser\": a valid label must be an empty string or consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyValue',  or 'my_value',  or '12345', regex used for validation is '(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?')","field":"metadata.labels"}]},"code":422}

Thanks!

I’ve just tested this and it works for me, the pod is named jupyter-qqradeh23ak8faz8-5fax4-2duser.

Please can you provide enough information to reproduce your problem, such as your Z2JH configuration, and details of your Kubernetes setup.

It worked for me after converting the username to lowercase. Thanks!