kubernetes slaves cannot register to jenkins master -


i have kubernetes cluster (hosted @ university, not in gcloud) , i'm trying use jenkins jenksci/kubernetes plugin launch slaves. however, seems cannot register master, no matter do. (k8s 1.2, jenkins 2.19.2, kub-plugin 0.9)

this configuration use:

this configuration use now:

  • if set tty:true container starts never able connect master. logs unreadable , cannot attach slave inspect happening:

    $ kubectl logs jnpl-slave-ec16b9ae7bbd --namespace=jenkins error server: unrecognized input header $ kubectl attach -ti jnpl-slave-ec16b9ae7bbd --namespace=jenkins  error: pod jnpl-slave-ec16b9ae7bbd not running , cannot attached to; current phase succeeded 
  • if set tty:false container starts , correctly executes entrypoint /usr/local/bin/jenkins-slave, seems secret , slavename command-line args not passed, process dies asking them:

    $ kubectl logs jnpl-slave-ecfd3a6cbaba --namespace=jenkins warning: jnlpprotocol3 disabled default, use jnlp_protocol_opts alter behavior 2 arguments required, got [] ... 
  • if manually set parameters (seed , slave name) fake value, starts correctly, dies complaining /home/jenkins not writable:

    warning: jnlpprotocol3 disabled default, use jnlp_protocol_opts alter behavior hudson.remoting.jnlp.main createengine setting slave: http://10.254.151.87 hudson.remoting.jnlp.main$cuilistener <init> info: jenkins agent running in headless mode. exception in thread "main" java.lang.runtimeexception: root directory not writable ... 
  • however, if create slave manually on webpage setup it, works , can see slave online:

    node$ sudo docker run -ti docker.io/jenkinsci/jnlp-slave:latest /bin/bash pod$ java -jar /usr/share/jenkins/slave.jar -jnlpurl http://10.254.151.87/computer/slave1/slave-agent.jnlp ... info: connected 

so... don't know test further. appreciate if give me hint!

with best regards,

mario

the arguments field should ${computer.jnlpmac} ${computer.name} , should set default when adding new containers pod definition


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -