Kubectl Command Gives a Delayed Response
Problem
The
kubectlcommands takes time to show the outputs.The below errors could be seen when run using
--v=8option.
Environment
Platform9 Managed Kubernetes - All versions
Cause
While querying for the requested resource using
kubectlcommands, it also queries the metrics services to validate few things before giving the actual outputs.The query to metrics service holds a timeout of 5003 milliseconds(5seconds) and retries 2 times during the
kubectlcall as seen above.
If the metrics service is unavailable due to some reason/issues, the total timeout adds up to 10 seconds, causing the actual output to return after ~15 seconds.
Resolution
Check the status of the resources associated with metrics apiservice.
The issue could be with any of the metrics resource. Below commands could be used to troubleshoot in respective direction.
