On Thu, Jan 26, 2017 at 9:04 PM, J <javeria...@gmail.com> wrote:

> That worked with actually setting the name to 'jnlp-slave'; in a resource
> unlimited namespace. Thanks
>

if you don't set the name to jnlp you'll get 2 containers in your pod


>
> Will get back to you as soon as I find the api handles for POD resource
> limits, as I'd really like to be able to use my existing cluster namespace.
>

it gets the limits from the container limits in the pod AFAIK


>
>
> On Thursday, 26 January 2017 11:08:20 UTC-8, Carlos Sanchez wrote:
>>
>> You can check in k8s why the container exited.
>> You need to make sure args is '${computer.jnlpmac} ${computer.name}'
>>
>> On Thu, Jan 26, 2017 at 8:04 PM, J <javer...@gmail.com> wrote:
>>
>>>
>>> You're right, the api only seems to define container limits. While I
>>> still look for how the api infers these; I can usually define them in a
>>> yaml like this
>>> <https://gist.github.com/JaveriaK/cfdca36151ee06a6da55c8db073718c7#file-limits-yaml-L14>
>>>  with
>>> a "type: Pod" label, and it puts limits on my namespace for both PODs
>>> and containers:
>>>
>>>
>>> <https://lh3.googleusercontent.com/-9dWzKH4aTJ0/WIpG6wuKnXI/AAAAAAAABmg/ES2kASMqwPkL7hDGoD1lqqqK1l1PlR0FACLcB/s1600/Screen%2BShot%2B2017-01-26%2Bat%2B11.00.08%2BAM.png>
>>>
>>>
>>> However I was able to successfully run a build and create PODs in a
>>> namespace without any set limits.
>>>
>>> Setting the container name to 'jnlp' seems to not let it work anywhere
>>> though with obscure errors (I couldn't make out anything from these..):
>>>
>>> Jan 26, 2017 6:29:38 PM 
>>> org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud
>>>>> provision
>>>>
>>>> INFO: Excess workload after pending Spot instances: 1
>>>>
>>>> Jan 26, 2017 6:29:38 PM hudson.slaves.NodeProvisioner$StandardStrategyImpl
>>>>> apply
>>>>
>>>> INFO: Started provisioning Kubernetes Pod Template from kubernetes with
>>>>> 1 executors. Remaining excess workload: 0
>>>>
>>>> Jan 26, 2017 6:29:38 PM org.csanchez.jenkins.plugins.k
>>>>> ubernetes.KubernetesCloud$ProvisioningCallback call
>>>>
>>>> INFO: Created Pod: jenkins-slave-e6720c6adbb4
>>>>
>>>> Jan 26, 2017 6:29:38 PM org.csanchez.jenkins.plugins.k
>>>>> ubernetes.KubernetesCloud$ProvisioningCallback call
>>>>
>>>> INFO: Waiting for Pod to be scheduled (0/100):
>>>>> jenkins-slave-e6720c6adbb4
>>>>
>>>> Jan 26, 2017 6:29:44 PM org.csanchez.jenkins.plugins.k
>>>>> ubernetes.KubernetesCloud$ProvisioningCallback call
>>>>
>>>> SEVERE: Error in provisioning; slave=KubernetesSlave name:
>>>>> jenkins-slave-e6720c6adbb4, template=org.csanchez.jenkins.
>>>>> plugins.kubernetes.PodTemplate@67f9564d
>>>>
>>>> java.lang.IllegalStateException: Containers are terminated with exit
>>>>> codes: {jnlp=0}
>>>>
>>>> at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$Prov
>>>>> isioningCallback.call(KubernetesCloud.java:600)
>>>>
>>>> at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$Prov
>>>>> isioningCallback.call(KubernetesCloud.java:532)
>>>>
>>>> at jenkins.util.ContextResettingExecutorService$2.call(ContextR
>>>>> esettingExecutorService.java:46)
>>>>
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>
>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>>>> Executor.java:1142)
>>>>
>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>>>> lExecutor.java:617)
>>>>
>>>> at java.lang.Thread.run(Thread.java:745)
>>>>
>>>> Jan 26, 2017 6:29:48 PM hudson.slaves.NodeProvisioner$2 run
>>>>
>>>> WARNING: Provisioned agent Kubernetes Pod Template failed to launch
>>>>
>>>> java.lang.IllegalStateException: Containers are terminated with exit
>>>>> codes: {jnlp=0}
>>>>
>>>> at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$Prov
>>>>> isioningCallback.call(KubernetesCloud.java:600)
>>>>
>>>> at org.csanchez.jenkins.plugins.kubernetes.KubernetesCloud$Prov
>>>>> isioningCallback.call(KubernetesCloud.java:532)
>>>>
>>>> at jenkins.util.ContextResettingExecutorService$2.call(ContextR
>>>>> esettingExecutorService.java:46)
>>>>
>>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>>>
>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool
>>>>> Executor.java:1142)
>>>>
>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo
>>>>> lExecutor.java:617)
>>>>
>>>> at java.lang.Thread.run(Thread.java:745)
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/jenkinsci-users/991159ab-4712-4d9f-afe0-c07cf88d2f82%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/jenkinsci-users/991159ab-4712-4d9f-afe0-c07cf88d2f82%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jenkinsci-users/e9f0a12d-a500-4904-a840-ec934eaa81df%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/e9f0a12d-a500-4904-a840-ec934eaa81df%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6Pjw-MpXBjTdFwG0X6ZWbiQHJOp6OW7sK0BmTQC1LGbuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to