簡體   English   中英

Jenkins Kubernetes 插件 URL 一段時間后連接失敗

[英]Jenkins Kubernetes Plugin URL Connection Fails After Some Time

正如標題所示,我遇到了一個奇怪的問題。

我正在 IBM Cloud 上的 Kubernetes 集群上運行我的 Jenkins。 我使用 kubernetes 插件來配置雲並動態創建從容器來運行作業。

When I set up this cloud configuration, I provided the Kubernetes Public Service Endpoint URL (as I found on some other guides) of the cluster that Jenkins is on, as the Kubernetes URL. 我可以對其進行測試,並且可以成功運行。

奇怪的是,在運行了幾個作業之后,它開始給我錯誤,它無法啟動容器。

如果我 go 回到雲配置,然后單擊“測試連接”,現在會拋出錯誤: Error testing connection https://<Public Service Endpoint URL>: null 如果我重新啟動 Jenkins,它會再次工作。

任何建議都非常感謝! 謝謝!

我不確定為什么它有時可以使用公共服務端點,但將其發布給未來的人:

  1. 我根據這個線程創建了clusterrolebinding
  2. 我創建了一個憑證(類型:秘密文本)並將其與https://kubernetes.default.svc.cluster.local的“Kubernetes URL”一起用於雲配置

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM