1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Jenkins+KubernetesでPodの起動に失敗する場合、「Inbound TCP Agent Protocol/4 (TLS encryption)」のチェックが外れているか確認する

Last updated at Posted at 2020-05-05

エラー現象

以下のようにJenkinsジョブでPodの生成まで行われるが、
ジョブの実行にはいかず、延々とPod生成が繰り返し行われる。

Created Pod: default/sample-app-7z8w4-7gqpr
[Normal][default/sample-app-7z8w4-7gqpr][Scheduled] Successfully assigned default/sample-app-7z8w4-7gqpr to caltago
[Normal][default/sample-app-7z8w4-7gqpr][Pulling] Pulling image "sample/app"
[Normal][default/sample-app-7z8w4-7gqpr][Pulled] Successfully pulled image "sample/app"
[Normal][default/sample-app-7z8w4-7gqpr][Created] Created container scrapy
[Normal][default/sample-app-7z8w4-7gqpr][Started] Started container scrapy
[Normal][default/sample-app-7z8w4-7gqpr][Pulled] Container image "jenkins/jnlp-slave:4.0.1-1" already present on machine
[Normal][default/sample-app-7z8w4-7gqpr][Created] Created container jnlp
[Normal][default/sample-app-7z8w4-7gqpr][Started] Started container jnlp
Created Pod: default/sample-app-7z8w4-b0mzh
[Normal][default/sample-app-7z8w4-b0mzh][Scheduled] Successfully assigned default/sample-app-7z8w4-b0mzh to caltago
[Normal][default/sample-app-7z8w4-b0mzh][Pulling] Pulling image "sample/app"
[Normal][default/sample-app-7z8w4-b0mzh][Pulled] Successfully pulled image "sample/app"
[Normal][default/sample-app-7z8w4-b0mzh][Created] Created container scrapy
[Normal][default/sample-app-7z8w4-b0mzh][Started] Started container scrapy
[Normal][default/sample-app-7z8w4-b0mzh][Pulled] Container image "jenkins/jnlp-slave:4.0.1-1" already present on machine
[Normal][default/sample-app-7z8w4-b0mzh][Created] Created container jnlp
[Normal][default/sample-app-7z8w4-b0mzh][Started] Started container jnlp
Created Pod: default/sample-app-7z8w4-08cp2

原因

JenkinsSlave設定の「Inbound TCP Agent Protocol/4 (TLS encryption)」が未チェックになっていたため。
(どうもJenkinsのUpdateで引き継がれなかったっぽい?)

kubectl logs

INFO: Server reports protocol JNLP4-connect not supported, skipping
May 05, 2020 6:49:46 AM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: The server rejected the connection: None of the protocols are enabled
java.lang.Exception: The server rejected the connection: None of the protocols are enabled
        at hudson.remoting.Engine.onConnectionRejected(Engine.java:825)
        at hudson.remoting.Engine.innerRun(Engine.java:767)
        at hudson.remoting.Engine.run(Engine.java:518)

エラー発生時の設定状態

image.png

エラー解決時の設定状態

image.png

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?