expected behaviour - jwks keys should be rotated.
Actual behaviour - Keys were not rotated and job had failures .
File "/usr/lib/python3.8/site-packages/kubernetes/client/api/core_v1_api.py", line 994, in connect_get_namespaced_pod_exec
return self.connect_get_namespaced_pod_exec_with_http_info(name, namespace, **kwargs) # noqa: E501
File "/usr/lib/python3.8/site-packages/kubernetes/client/api/core_v1_api.py", line 1101, in connect_get_namespaced_pod_exec_with_http_info
return self.api_client.call_api(
File "/usr/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 348, in call_api
return self.__call_api(resource_path, method,
File "/usr/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 180, in __call_api
response_data = self.request(
File "/usr/lib/python3.8/site-packages/kubernetes/stream/ws_client.py", line 515, in websocket_call
raise ApiException(status=0, reason=str(e))
kubernetes.client.exceptions.ApiException: (0)
Reason: Handshake status 500 Internal Server Error
Current status - this is fixed after the oxauth pods were in running state.
Root cause - Pods were in evicted state due to which job was not able to connect to pods , hence, internal server error.
Could you please investigate to have check for key rotation job to first verify the status of the pods and before the job is run.