I think my problem was caused by the Private Node Pool on GKE. And my jenkins agent was created on Private Pool and had no internet access.