无法连接到kubernetes服务,错误:超时

时间:2018-02-04 16:38:07

标签: kubernetes

我正在尝试通过pod连接到public static void main (String[] args) { System.setProperty("webdriver.chrome.driver", "Put your path here"); ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--headless"); // I only comment this out when I disable headless HashMap<String, Object> images = new HashMap<String, Object>(); images.put("images", 2); HashMap<String, Object> prefs = new HashMap<String, Object>(); prefs.put("profile.default_content_setting_values", images); chromeOptions.setExperimentalOption("prefs", prefs); DesiredCapabilities chromeCaps = DesiredCapabilities.chrome(); chromeCaps.setCapability(ChromeOptions.CAPABILITY, chromeOptions); WebDriver driver = new ChromeDriver(chromeCaps); int a = (int) System.currentTimeMillis(); driver.get("http://www.google.com"); int b = (int) System.currentTimeMillis(); int c = b - a; System.out.println("Hey the page loaded in " + c + "ms!"); } 服务。

我可以使用kubernetes列出服务,我可以看到CLusterIP和端口在那里,但是当pod尝试连接到它时,我收到错误

  

拨tcp 10.0.0.153:xxxx:i / o timeout。

知道如何调试吗?或者可能是什么原因?

0 个答案:

没有答案