Jenkins + Kubernetes에서 Pod를 시작하지 못하는 경우 "Inbound TCP Agent Protocol/4 (TLS encryption)"이 선택되지 않았는지 확인하십시오.

3505 단어 Jenkinskubernetes

오류 현상



다음과 같이 Jenkins 작업에서 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)

오류 발생시 설정 상태





오류 해결 시 설정 상태



좋은 웹페이지 즐겨찾기