Re: Kubernetes Plugin - Running more than one agent of a pod template concurrently

2023-09-08 Thread 'jn...@cloudbees.com' via Jenkins Users
completes, and the pod it was using gets terminated, then second job spawns a new agent pod sounds like an issue in your pipeline, did you check / follow the docs esp wrt podTemplate and POD_LABEL [1] /James [1] https://plugins.jenkins.io/kubernetes/#plugin-content-using-the-pipeline-step

Kubernetes Plugin - Running more than one agent of a pod template concurrently

2023-09-01 Thread Ashish Sharma
Dear All, We are using kubernetes plugin to spawn new agents for build jobs. We want to ensure that multiple agent pods are running for build stages (which take a while to run and complete). However we notice that only a single agent pod is active at a time. - First job is active, and create a

Kubernetes plugin. Identical pod template in multiple kube clouds.

2022-08-31 Thread ravi kiran rao bukka
cluster fails does it fail-over to the other one? https://github.com/jenkinsci/kubernetes-plugin -- 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 jenki

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2022-04-13 Thread Ivan Fernandez Calvo
eading about the impacts of dockershim removal here: >> https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim/check-if-dockershim-deprecation-affects-you/ >> and >> here >> https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2022-04-12 Thread Jan Monterrubio
/check-if-dockershim-deprecation-affects-you/ > and > here > https://kubernetes.io/docs/tasks/administer-cluster/migrating-from-dockershim/migrating-telemetry-and-security-agents/ > , any > apps that depend on the docker daemon by exposing /var/run/docker.sock will > be im

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2022-04-12 Thread 'Mario Rodriguez' via Jenkins Users
e docker.sock anymore >> >> On Wed, Oct 27, 2021 at 5:00 AM 'Mario Rodriguez' via Jenkins Users < >> jenkins...@googlegroups.com> wrote: >> >>> and how about if we are using the kubernetes plugin podTemplate >>> <https://www.jenkins.

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2022-04-12 Thread Steve Ridley
: > You cannot use the docker.sock anymore > > On Wed, Oct 27, 2021 at 5:00 AM 'Mario Rodriguez' via Jenkins Users < > jenkins...@googlegroups.com> wrote: > >> and how about if we are using the kubernetes plugin podTemplate >> <https://www.jenkins

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2021-10-27 Thread Carlos Sanchez
You cannot use the docker.sock anymore On Wed, Oct 27, 2021 at 5:00 AM 'Mario Rodriguez' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > and how about if we are using the kubernetes plugin podTemplate > <https://www.jenkins.io/doc/pipeline/steps/kuberne

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2021-10-26 Thread 'Mario Rodriguez' via Jenkins Users
and how about if we are using the kubernetes plugin podTemplate <https://www.jenkins.io/doc/pipeline/steps/kubernetes/#podtemplate-define-a-podtemplate-to-use-in-the-kubernetes-plugin> ? more less like this: podTemplate(cloud: 'kubernetes', label: args.pipelineName

Re: Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2021-09-30 Thread Carlos Sanchez
You can use a different builder like Kaniko with the plugin https://github.com/jenkinsci/kubernetes-plugin/blob/master/examples/kaniko-declarative.groovy On Thu, Sep 30, 2021 at 2:05 AM 'Mario Rodriguez' via Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hello,

Kubernetes plugin for Jenkins after dockershim runtime is deprecated

2021-09-29 Thread 'Mario Rodriguez' via Jenkins Users
/docker.sock will be impacted. We use the Kubernetes plugin for Jenkins <https://plugins.jenkins.io/kubernetes/> using this docker daemon exposure technique. Assuming a transition from docker to containerd, any idea what changes will be needed by Kubernetes plugin users to continue working pr

Re: Kubernetes plugin

2021-03-22 Thread Richard Bywater
gt; > On Mon, Mar 22, 2021 at 9:28 AM Richard Bywater > wrote: > >> Hi >> >> I was just looking at JENKINS-64778 >> <https://issues.jenkins.io/browse/JENKINS-64778> which regarded a >> request in the Kubernetes plugin and noted one of the comments

Re: Kubernetes plugin

2021-03-22 Thread Carlos Sanchez
/browse/JENKINS-64778> which regarded a request > in the Kubernetes plugin and noted one of the comments was "we are no > longer actively maintaining this plugin" > > Just wondering about whether this is because there is another plugin that > is now instead favoured to be us

Kubernetes plugin

2021-03-22 Thread Richard Bywater
Hi I was just looking at JENKINS-64778 <https://issues.jenkins.io/browse/JENKINS-64778> which regarded a request in the Kubernetes plugin and noted one of the comments was "we are no longer actively maintaining this plugin" Just wondering about whether this is because there i

kubernetes plugin: How can i let the build to stop when pulling image failed?

2020-11-22 Thread Hyunil Shin
Hi all I have question about kubernetes plugin. when wrong data is provided, pulling image failed. error message: denied: requested access to the resource is denied For example, wrong image name is given, it failed. But there may be no timeout, so the build is not finished. At the time, I

Re: [Kubernetes Plugin] PVC for each build agent with defined size.

2020-11-22 Thread Liejun Tao
It should be doable by extending this: Dynamic Jenkins Agent from Kubernetes On Sat, Nov 21, 2020 at 6:49 AM Nadir Mouhoubi wrote: > Hello, > > I'm looking for a simple solution without implementing a mutating K8S > Webhook t

[Kubernetes Plugin] PVC for each build agent with defined size.

2020-11-21 Thread Nadir Mouhoubi
Hello, I'm looking for a simple solution without implementing a mutating K8S Webhook that allow me to use a dynamic provisioned PVC for each agent pod without fixing the PVC size at Jenkins cloud definition for the workspace. Is there a way to get this working. Thanks. Nadir. -- You receive

Re: Kubernetes plugin - container is not valid for pod

2020-10-01 Thread Michael Kanchuker‎
t; This is a job in a multibranch pipeline running from a Jenkins file (see >> below). I can see the container in kubectl, and I can run a shell in it. >> I don't experience this in my other builds. >> I'm running Jenkins v2.249.1 and Kubernetes plugin

Re: Kubernetes plugin - container is not valid for pod

2020-09-25 Thread Vincent Latombe
is a job in a multibranch pipeline running from a Jenkins file (see > below). I can see the container in kubectl, and I can run a shell in it. > I don't experience this in my other builds. > I'm running Jenkins v2.249.1 and Kubernetes plugin v1.27.1. > > Your help is much a

Kubernetes plugin - container is not valid for pod

2020-09-21 Thread Michael Kanchuker‎
shell in it. I don't experience this in my other builds. I'm running Jenkins v2.249.1 and Kubernetes plugin v1.27.1. Your help is much appreciated, Michael Kanchuker. Jenkinsfile: podTemplate(label: "admin-builder", containers: [ containerTemplate(name: 'dock

Re: Kubernetes Plugin: How to run commands within agent container as non-root?

2020-09-15 Thread Vincent Latombe
nkinsci-users@googlegroups.com] > on behalf of Vincent Latombe [vincent.lato...@gmail.com] > *Sent:* Friday, September 11, 2020 11:50 AM > *To:* Jenkins Users > *Subject:* Re: Kubernetes Plugin: How to run commands within agent > container as non-root? > > > [Pipeline] container

RE: Kubernetes Plugin: How to run commands within agent container as non-root?

2020-09-15 Thread iris Jasper Orschulko
ubject: Re: Kubernetes Plugin: How to run commands within agent container as non-root? > [Pipeline] container What is your container definition? I really doubt it is the same image as what you're running through docker CLI. Vincent Le jeu. 10 sept. 2020 à 19:59, iris Jasper Orschulko ma

Re: Kubernetes Plugin: How to run commands within agent container as non-root?

2020-09-11 Thread Vincent Latombe
> [Pipeline] container What is your container definition? I really doubt it is the same image as what you're running through docker CLI. Vincent Le jeu. 10 sept. 2020 à 19:59, iris Jasper Orschulko < jasper.orschu...@irisgmbh.de> a écrit : > I am trying to run a Pipeline in a Kubernetes agent,

Kubernetes Plugin: How to run commands within agent container as non-root?

2020-09-10 Thread iris Jasper Orschulko
I am trying to run a Pipeline in a Kubernetes agent, which needs to execute commands as non-root user. So I tried setting the securityContext of the Pod to 1000 (the default jenkins user) as described here: https://plugins.jenkins.io/kubernetes/. However, the user does not exist in the containe

Re: [kubernetes-plugin | casc ] Different behaviour between declarative and casc configuration ?

2020-09-09 Thread Vincent Latombe
(this is rather a question for Jenkins Users) This smells like a bug. Please open a jira issue with a reproducer. Vincent Le mer. 9 sept. 2020 à 10:32, aben...@redhat.com a écrit : > Hi Jenkins-Dev, > > I am trying to port a configuration of the kubernetes-plugin between > serve

kubernetes plugin issue with workingDir set as /home/jenkins/agent

2020-06-16 Thread b Od
/home/jenkins" but isn’t working for us. https://github.com/jenkinsci/kubernetes-plugin/pull/713 Wondering if anyone else is having the same issue. Thanks Brian -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from

Re: Jenkins Kubernetes plugin - scheduling hangs when there are more than 1000 builds in queue

2020-06-08 Thread Vincent Latombe
y Babushkin > wrote: > >> Greetings Jenkins community! >> >> My team uses Jenkins to run long validation cycles. We use Kubernetes >> plugin (we run our own bare-metal cluster) and many quick single test case >> builds. >> Recently our number of test cases have g

Re: Jenkins Kubernetes plugin - scheduling hangs when there are more than 1000 builds in queue

2020-06-06 Thread Liejun Tao
provisioned but it didn't? IMHO I would think the "concurrent limit" is way too high. How about start with 100 then tune it high? On Fri, Jun 5, 2020 at 1:24 PM Andrey Babushkin wrote: > Greetings Jenkins community! > > My team uses Jenkins to run long validation cycles. We

Jenkins Kubernetes plugin - scheduling hangs when there are more than 1000 builds in queue

2020-06-05 Thread Andrey Babushkin
Greetings Jenkins community! My team uses Jenkins to run long validation cycles. We use Kubernetes plugin (we run our own bare-metal cluster) and many quick single test case builds. Recently our number of test cases have grown drastically and we've noticed that scheduling of new builds is

Re: Kubernetes plugin + vanilla node/agent - classcast exception

2020-05-07 Thread Liejun Tao
You may start the pipeline with agent none, the do one stage with the k8s node, another stage with the other node. On Thu, May 7, 2020, 9:02 AM David Karlsen wrote: > I have a pipeline which uses the Kubernetes Jenkins plugin: > > pipeline { > agent { > kubernetes { > cloud 'icp-gl

Kubernetes plugin + vanilla node/agent - classcast exception

2020-05-07 Thread David Karlsen
I have a pipeline which uses the Kubernetes Jenkins plugin: pipeline { agent { kubernetes { cloud 'icp-global' defaultContainer 'node' // customWorkspace '/workspace' yamlFile 'buildPod.yaml' } but would like to run another step outside of containers, like: sta

Unable to set pod retention for Jenkins Kubernetes plugin Groovy script.

2020-04-16 Thread santhosh kumar
Trying to configure pod retention value for Jenkins Kubernetes plugin using groovy script. kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kube rnetes.pod.retention.Podretention.Never()) method is failing to configure with below error : Invalid value provided in main configuration No

Re: kubernetes-plugin and PersistentVolumeClaims

2020-01-14 Thread scottyg
kubernetes-cd is certainly possible, though I haven't figured out how I would use in in a declarative pipeline in conjunction with the kubernetes-plugin yet. But overall it's a less than ideal solution for my use case: - Cannot use the existing configuration with kubernetes-plugin

Re: kubernetes-plugin and PersistentVolumeClaims

2020-01-13 Thread Usov Dmitri
, scottyg wrote: > > I have a use case where a PersistentVolumeClaim is used to clone a volume > snapshot, which is a prebuilt m2 repository. A PVC object needs to be > created before creating the Pod object, then deleted after the pod finishes. > > Using kubernetes-plugin, it s

kubernetes-plugin and PersistentVolumeClaims

2020-01-13 Thread Scott Grissom
I have a use case where a PersistentVolumeClaim is used to clone a volume snapshot, which is a prebuilt m2 repository. A PVC object needs to be created before creating the Pod object, then deleted after the pod finishes. Using kubernetes-plugin, it seems that the yaml attribute in the

Issues with Jenkins master in Openshift cluster creating slaves in another openshift cluster using kubernetes plugin

2019-11-11 Thread pawan kondaveeti
We have two openshift clusters. Installed Jenkins master on one cluster and trying to create slaves in another cluster using Kubernetes plugin. Pods are created on another cluster when requested but the handshake fails with below error. Nov 06, 2019 12:08:46 PM hudson.remoting.jnlp.Main

[Jenkins Kubernetes Plugin] - hudson.remoting.ChannelClosedException: Channel "unknown": Remote call on JNLP4-connect connection from IP/IP:port failed. The channel is closing down or has closed dow

2019-11-01 Thread Eddie Mashayev
Hey all, I have opened an issue in Jenkins project, but didn't get any help yet.. Maybe you can help me, link to the issue . Pasting the issue from the link: It happens frequently not something constant, which makes it very hard to debug.

Re: [Jenkins Kubernetes Plugin] Issues building plugin from source

2019-10-21 Thread Carlos Sanchez
gt; >> mvn clean install -Djenkins.host.address=192.168.99.1 >> >> >> On Thu, Oct 17, 2019 at 7:22 PM 'Andrew Douglas' via Jenkins Users < >> jenkins...@googlegroups.com> wrote: >> >>> Hi, I am trying to diagnose a potential issue with this pl

Re: [Jenkins Kubernetes Plugin] Issues building plugin from source

2019-10-21 Thread 'Andrew Douglas' via Jenkins Users
ins.host.address=192.168.99.1 > > > On Thu, Oct 17, 2019 at 7:22 PM 'Andrew Douglas' via Jenkins Users < > jenkins...@googlegroups.com > wrote: > >> Hi, I am trying to diagnose a potential issue with this plugin and have >> downloaded the source (from >

Re: [Jenkins Kubernetes Plugin] Issues building plugin from source

2019-10-21 Thread Carlos Sanchez
a Jenkins Users < jenkinsci-users@googlegroups.com> wrote: > Hi, I am trying to diagnose a potential issue with this plugin and have > downloaded the source (from https://github.com/jenkinsci/kubernetes-plugin > ). > > I am running Minikube and have the latest version of Mav

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread drpm
rote: > > Ah ok, for that one you need to set it at podTemplate level, not inside > the yaml > > > On Fri, Oct 18, 2019, 11:38 drpm > wrote: > >> Hello, >> >> Thank you for your reply. >> >> It says here (https://github.com/jenkinsci/kubernetes-p

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread Carlos Sanchez
Ah ok, for that one you need to set it at podTemplate level, not inside the yaml On Fri, Oct 18, 2019, 11:38 drpm wrote: > Hello, > > Thank you for your reply. > > It says here (https://github.com/jenkinsci/kubernetes-plugin) that pod > will be deleted after the set active

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread drpm
Hello, Thank you for your reply. It says here (https://github.com/jenkinsci/kubernetes-plugin) that pod will be deleted after the set activeDeadlineSeconds is passed or am I totally reading it wrong? - podRetention Controls the behavior of keeping slave pods. Can be '

Re: Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread Carlos Sanchez
ailed and kill associated containers. Value must be a positive integer. On Fri, Oct 18, 2019 at 11:11 AM drpm wrote: > Hello, > > For some reason, jenkins is not honoring *activeDeadlineSeconds* > parameter when used in pipeline script. I'm using this kubernetes plugi

Jenkins Kubernetes Plugin not honoring activeDeadlineSeconds parameter

2019-10-18 Thread drpm
Hello, For some reason, jenkins is not honoring *activeDeadlineSeconds* parameter when used in pipeline script. I'm using this kubernetes plugin for jenkins: https://wiki.jenkins.io/display/JENKINS/Kubernetes+Plugin *Sample Pipeline Script*: def label = "jenkins-

[Jenkins Kubernetes Plugin] Issues building plugin from source

2019-10-17 Thread 'Andrew Douglas' via Jenkins Users
Hi, I am trying to diagnose a potential issue with this plugin and have downloaded the source (from https://github.com/jenkinsci/kubernetes-plugin). I am running Minikube and have the latest version of Maven. When I try to build the plugin with the command `mvn clean install -DconnectorHost

Re: Kubernetes plugin cannot start POD´s due to PVC creation error

2019-10-17 Thread Torsten Reinhard
ars=[KeyValueEnvVar [getValue()=https://rspsales-cinext.mycompanygroup.net, getKey()=LOCAL_URL], KeyValueEnvVar [getValue()=https://rspsales-cinext.mycompanygroup.net/nexus, getKey()=NEXUS_URL]]}], annotations=[org.csanchez.jenkins.plugins.kubernetes.PodAnnotation@9d4da4a8, org.csanchez.jenkins

Kubernetes plugin cannot start POD´s due to PVC creation error

2019-10-17 Thread Torsten Reinhard
Hi, I´m running Jenkins Version 2.190.1 in an openShift 3.9 Cluster, Kubernetes plugin is at version 1.19.3 Since one of the last updates, I sometimes run into: [id=1597]WARNINGo.c.j.p.k.KubernetesLauncher#launch: Error in provisioning; agent=KubernetesSlave name: b4dbc13f-6f01

[Jenkins Kubernetes Plugin] Handshake Error

2019-10-07 Thread Nadir Mouhoubi
Hello, Recently, we moved our Kubernetes Cluster to another on prem datacenter located in another geographical site with acceptable network latencies. On our Jenkins build platform, we are facing *random* SSL Handshake error with the exception bellow : 2019-10-07 13:36:33,109 [INFO]

[kubernetes plugin] compatibility matrix.

2019-10-07 Thread Nadir Mouhoubi
Bonjour, Is there any compatibility matrix between Jenkins, Jenkins-kubernetes-plugin and kubernetes version? or how can I found with version works with witch other ? Thank you for your help. Nadir. -- You received this message because you are subscribed to the Google Groups "Je

[Kubernetes plugin] Orphan nodes (pods) management.

2019-09-16 Thread Amel Mouhoubi
Hello, For some extra reasons, we have dynamic slaves created with Jenkins Kubernetes plugins that loose connection with the master because the master is down. Is there a way to parametrize jenkins remoting (Jenkins kubernetes plugin) to automatically delete these pods after a number of

Re: Kubernetes plugin and podtemplate in declarative pipeline

2019-09-12 Thread jado
rześnia 2019 15:25:00 UTC+2 użytkownik jado napisał: > > Hi, > I'm using Jenkins 2.176.2 and Kubernetes Plugin 1.18.1. > I defined PodTemplate via GUI with RawYaml definition and i would like to > use this in my declarative pipeline: > > pipeline { >>

Kubernetes plugin and podtemplate in declarative pipeline

2019-09-11 Thread jado
Hi, I'm using Jenkins 2.176.2 and Kubernetes Plugin 1.18.1. I defined PodTemplate via GUI with RawYaml definition and i would like to use this in my declarative pipeline: pipeline { > agent { > kubernetes { > cloud 'mycloud' > defaultContainer 'jn

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2019-09-09 Thread Sardar Junaid Mukhtar
Hi Carlos I have upgraded the plugin to the latest version 1.18.3 and we are still hitting the same issue but with a slightly different error message. Any chance that you can look into this? Thanks, Junaid On Friday, December 14, 2018 at 1:08:55 PM UTC, Simon Young wrote: > > Unfortunately it

Re: Jenkins Kubernetes plugin credentials for Google Kubernetes Engine cluster

2019-06-21 Thread Carlos Sanchez
you can create certificate credentials too, but the best way is to use a >> service account token (secret string) >> >> On Tue, Jun 18, 2019 at 11:51 PM samt88 wrote: >> >>> I need to setup the Jenkins Kubernetes plugin to fire off slaves on >>> demand. T

Re: Jenkins Kubernetes plugin credentials for Google Kubernetes Engine cluster

2019-06-21 Thread samt88
-7, Carlos Sanchez wrote: > > you can create certificate credentials too, but the best way is to use a > service account token (secret string) > > On Tue, Jun 18, 2019 at 11:51 PM samt88 > > wrote: > >> I need to setup the Jenkins Kubernetes plugin to fire off slaves on

Re: Jenkins Kubernetes plugin credentials for Google Kubernetes Engine cluster

2019-06-19 Thread Carlos Sanchez
you can create certificate credentials too, but the best way is to use a service account token (secret string) On Tue, Jun 18, 2019 at 11:51 PM samt88 wrote: > I need to setup the Jenkins Kubernetes plugin to fire off slaves on > demand. The top portion of the plugin requires us to provi

Jenkins Kubernetes plugin credentials for Google Kubernetes Engine cluster

2019-06-18 Thread samt88
I need to setup the Jenkins Kubernetes plugin to fire off slaves on demand. The top portion of the plugin requires us to provide two important values to the plugin. One is the value for the "Kubernetes URL" field and the other is the value for the "Credentials" field. By

Re: Kubernetes plugin - Service account authorization in Google Cloud

2019-05-16 Thread Carlos Sanchez
the right way for Kubernetes apps is to create a ServiceAccount https://cloud.google.com/solutions/jenkins-on-kubernetes-engine https://cloud.google.com/solutions/jenkins-on-kubernetes-engine-tutorial https://github.com/jenkinsci/kubernetes-plugin#running-in-google-container-engine-gke On Wed

Kubernetes plugin - Service account authorization in Google Cloud

2019-05-15 Thread Jonas Lindström
Hello, I am trying to use the Kubernetes plugin to start Jenkins agents in Google Kubernetes Engine. For server to server applications, Google recommends that you create a GCP service account and then generate a key file (JSON format) for this service account. The key file can then be used to

Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-05-14 Thread Art
ou please post the solution if >>>> anything is found? >>>> >>>> On Sunday, 26 August 2018 04:28:47 UTC+5:30, fabio...@singlepoint.ie >>>> wrote: >>>>> >>>>> I'm using Kubernetes plugin 1.12.3 >>>>> >>

Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-04-25 Thread Carlos Sanchez
pr 25, 2019 at 4:24 AM Gopi Naidu wrote: >> >>> I have got into the same issue. Could you please post the solution if >>> anything is found? >>> >>> On Sunday, 26 August 2018 04:28:47 UTC+5:30, fabio...@singlepoint.ie >>> wrote: >>>> >

Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-04-25 Thread Gopi
at 4:24 AM Gopi Naidu wrote: > >> I have got into the same issue. Could you please post the solution if >> anything is found? >> >> On Sunday, 26 August 2018 04:28:47 UTC+5:30, fabio...@singlepoint.ie >> wrote: >>> >>> I'm using Kubernetes p

Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-04-25 Thread Carlos Sanchez
> > On Sunday, 26 August 2018 04:28:47 UTC+5:30, fabio...@singlepoint.ie > wrote: >> >> I'm using Kubernetes plugin 1.12.3 >> >> The plugin works well, but whenever the agent does streams the log to the >> master, it causes a connection exception as follow

Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-04-24 Thread Gopi Naidu
I have got into the same issue. Could you please post the solution if anything is found? On Sunday, 26 August 2018 04:28:47 UTC+5:30, fabio...@singlepoint.ie wrote: > > I'm using Kubernetes plugin 1.12.3 > > The plugin works well, but whenever the agent does streams the log to

Re: kubernetes plugin 1.15.1 deletes the pod yaml specified in "Manage Jenkins" Cloud section.

2019-04-22 Thread Philip Mason
Thanks! On Mon, Apr 22, 2019 at 11:45 AM Carlos Sanchez wrote: > this has been fixed in 1.15.2 > https://issues.jenkins-ci.org/browse/JENKINS-57112 > > On Thu, Apr 18, 2019 at 9:13 PM Philip Mason wrote: > >> Hi, >> >> I installed the latest kubernetes plugi

Kubernetes plugin with Rancher cluster

2019-04-22 Thread Quang Truong
Hi, I have setup an on-prem cluster with Rancher 2.X ( https://rancher.com/docs/rke/latest/en/installation/), when I set the worker node on the same master, the jnlp slave can start successfully. However, when I try a new node in the cluster, I use the master on one machine and another machine

Re: kubernetes plugin 1.15.1 deletes the pod yaml specified in "Manage Jenkins" Cloud section.

2019-04-22 Thread Carlos Sanchez
this has been fixed in 1.15.2 https://issues.jenkins-ci.org/browse/JENKINS-57112 On Thu, Apr 18, 2019 at 9:13 PM Philip Mason wrote: > Hi, > > I installed the latest kubernetes plugin 1.15.1 and found that all of my > container pod yaml snippets were deleted and anything I put in

kubernetes plugin 1.15.1 deletes the pod yaml specified in "Manage Jenkins" Cloud section.

2019-04-18 Thread Philip Mason
Hi, I installed the latest kubernetes plugin 1.15.1 and found that all of my container pod yaml snippets were deleted and anything I put in the text box is no longer persisted. I'm using this means of specifying the pod yaml since legacy non-pipeline jobs can then use the slaves spun up

Re: Kubernetes plugin in a JobDSL environment

2019-04-05 Thread Sean Walberg
ontainers . > IIRC you can set the default container to be different than jnlp > > On Thu, Apr 4, 2019, 20:34 Sean Walberg > > wrote: > >> Hi, >> >> The kubernetes-plugin has the "container" keyword to run commands inside >> the given containe

Re: Kubernetes plugin in a JobDSL environment

2019-04-04 Thread Carlos Sanchez
You can't use 'container' with freestyle jobs, there's no way to switch containers . IIRC you can set the default container to be different than jnlp On Thu, Apr 4, 2019, 20:34 Sean Walberg wrote: > Hi, > > The kubernetes-plugin has the "container" key

Kubernetes plugin in a JobDSL environment

2019-04-04 Thread Sean Walberg
Hi, The kubernetes-plugin has the "container" keyword to run commands inside the given container instead of the default jnlp sidecar. Is there an equivalent in Job DSL? We have everything defined in Job DSL as freestyle jobs and I'm able to point a job to the Kubernetes label

Re: [Jenkins Kubernetes Plugin] How to restrict/choose kubernetes Cloud access from jenkinsfile

2019-03-05 Thread Carlos Sanchez
Something along the lines of https://github.com/jenkinsci/kubernetes-plugin/#restricting-what-jobs-can-use-your-configured-cloud plus maybe some RBAC on the Kubernetes side to prevent service account from doing things you don't want them to do On Tue, Mar 5, 2019 at 7:00 PM Nadir Mouhoubi

[Jenkins Kubernetes Plugin] How to restrict/choose kubernetes Cloud access from jenkinsfile

2019-03-05 Thread Nadir Mouhoubi
Hello everyone, We designed a kubernetes Cluster to launch dynamic Jenkins Agents and everything works fine. This cluster is mutualised for several projets that do there build using a cloud defined at Jenkins Administration level. Recently, we added a projet that uses the same Jenkins cloud an

Re: Kubernetes plugin - multi clusters

2019-01-23 Thread Carlos Sanchez
gt; cluster if any one of the cluster is down/not active >> >> On Friday, January 18, 2019 at 1:53:30 PM UTC+5:30, Tristan FAURE wrote: >>> >>> Oops 🤐 >>> Sorry I will test it. Thank you very much >>> >>> Le ven. 18 janv. 2019 à 09:21, Carlos S

Re: Kubernetes plugin - multi clusters

2019-01-22 Thread Tristan FAURE
if any one of the cluster is down/not active > > On Friday, January 18, 2019 at 1:53:30 PM UTC+5:30, Tristan FAURE wrote: >> >> Oops 🤐 >> Sorry I will test it. Thank you very much >> >> Le ven. 18 janv. 2019 à 09:21, Carlos Sanchez a >> écrit : >> &g

Re: Kubernetes plugin - multi clusters

2019-01-22 Thread pbasanta2002
18, 2019 at 1:53:30 PM UTC+5:30, Tristan FAURE wrote: > > Oops 🤐 > Sorry I will test it. Thank you very much > > Le ven. 18 janv. 2019 à 09:21, Carlos Sanchez > a écrit : > >> In the pipeline you need the "cloud" parameter >> >> >> htt

Re: Kubernetes plugin - multi clusters

2019-01-18 Thread Tristan FAURE
Oops 🤐 Sorry I will test it. Thank you very much Le ven. 18 janv. 2019 à 09:21, Carlos Sanchez a écrit : > In the pipeline you need the "cloud" parameter > > > https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pod-and-container-template-configuration &g

Re: Kubernetes plugin - multi clusters

2019-01-18 Thread Carlos Sanchez
In the pipeline you need the "cloud" parameter https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pod-and-container-template-configuration On Fri, Jan 18, 2019, 09:02 Tristan FAURE wrote: > Thank you for your answer ! > > So If i have a k8s cloud cloud1 and

Re: Kubernetes plugin - multi clusters

2019-01-18 Thread Tristan FAURE
Thank you for your answer ! So If i have a k8s cloud cloud1 and another one cloud2 I can use the label to select one of them ? In this sample (see bellow) I don't see where I have to insert the label ? pipeline { agent { kubernetes { label "bd-${random}" yaml """ spec: containers: - name: node i

Re: Kubernetes plugin - multi clusters

2019-01-17 Thread Carlos Sanchez
all cloud definitions are used by matching the labels of the pod templates and your job labels https://wiki.jenkins.io/display/JENKINS/Distributed+builds#Distributedbuilds-Nodelabelsforagents On Thu, Jan 17, 2019 at 5:29 PM Tristan FAURE wrote: > Hello > The jenkins GUI allows the creation of

Kubernetes plugin - multi clusters

2019-01-17 Thread Tristan FAURE
Hello The jenkins GUI allows the creation of several Kubernetes cloud, how does it work ? Are they all used or only one ? If many is OK Is there a way to select a specific cluster in my pipeline ? Thank you in advance Tristan FAURE -- You received this message because you are subscribed to the

Re: JNLP java.nio.channels.ClosedChannelException with kubernetes-plugin

2019-01-10 Thread roey . azroel
>> What I've observed: >> - A build step with a sleep of 60 seconds always works >> - A build step with a sleep of 70 seconds always fails >> >> I was wondering, could be a 60 seconds timeout in either the JNLP or >> somewhere else? >> >>

Re: Kubernetes plugin configuration using groovy

2019-01-03 Thread Alex
ggregator:2.6 > kubernetes:1.14.2 > kubernetes-credentials-provider:0.10 > timestamper:1.8.10 > locale:1.4 > > I'd appreciate any help. > > --Reinhard > > > On Monday, August 20, 2018 at 4:39:57 PM UTC+2, Carlos Sanchez wrote: >> >>

Re: Kubernetes plugin configuration using groovy

2019-01-03 Thread unguiculus
'd appreciate any help. --Reinhard On Monday, August 20, 2018 at 4:39:57 PM UTC+2, Carlos Sanchez wrote: > > Have you tried configuration as code plugin? > > On Mon, Aug 20, 2018, 15:54 Alex > > wrote: > >> I am trying to configure the kubernetes plugin by using gr

Re: [kubernetes plugin] yamlFile libraryResource

2018-12-21 Thread Arnaud bourree
I created issue https://issues.jenkins-ci.org/browse/JENKINS-55299 Le ven. 21 déc. 2018 à 14:18, Arnaud bourree a écrit : > Hello, > > I'd like to move pod definition from pipeline to a file resource in a > shared library. > > My pipeline is like: > pipeline { > agent none > stages { >

[kubernetes plugin] yamlFile libraryResource

2018-12-21 Thread Arnaud bourree
Hello, I'd like to move pod definition from pipeline to a file resource in a shared library. My pipeline is like: pipeline { agent none stages { stage('step-in-kubernetes') { agent { kubernetes { label 'kube' yaml

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-14 Thread Simon Young
Unfortunately it's not fixed in 1.13.8. We now see this: Connection was rejected, you should increase the Max connections to Kubernetes API I tried increasing Max connections to 400. The next build passed, but subsequent builds are failing, just like we saw with 1.13.7. I have to roll back to

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-14 Thread Carlos Sanchez
This should be fixed in 1.13.8 On Fri, Dec 14, 2018, 08:31 Simon Young wrote: > Hi Carlos, > > Rolling back to 1.13.5 seems to have fixed the issue. I can now run > multiple consecutive builds and they all pass. > > I'm a bit concerned that we're unable to upgrade to the latest version > though

Re: Kubernetes Plugin - How to configure service account when master is not deployed in K8S?

2018-12-14 Thread Carlos Sanchez
los Sanchez > escreveu: >> >> secret text it is >> >> On Tue, Dec 11, 2018 at 7:49 AM wrote: >> >>> Hello all, >>> >>> I'm having issues with the Kubernetes Plugin: >>> https://github.com/jenkinsci/kubernetes-plugin >&g

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-14 Thread Simon Young
Hi Carlos, Rolling back to 1.13.5 seems to have fixed the issue. I can now run multiple consecutive builds and they all pass. I'm a bit concerned that we're unable to upgrade to the latest version though - Do you have enough information to identify the problem? Thanks, Simon. -- You receive

Re: Kubernetes Plugin - How to configure service account when master is not deployed in K8S?

2018-12-11 Thread andretmcarmo
much for your fast response. Regards terça-feira, 11 de Dezembro de 2018 às 15:55:11 UTC, Carlos Sanchez escreveu: > > secret text it is > > On Tue, Dec 11, 2018 at 7:49 AM > wrote: > >> Hello all, >> >> I'm having issues with the Kubernetes Plugin: >

Re: Kubernetes Plugin - How to configure service account when master is not deployed in K8S?

2018-12-11 Thread Carlos Sanchez
secret text it is On Tue, Dec 11, 2018 at 7:49 AM wrote: > Hello all, > > I'm having issues with the Kubernetes Plugin: > https://github.com/jenkinsci/kubernetes-plugin > > I configured it successfully with Minikube, but once I moved to a real > cluster, I couldn&

Kubernetes Plugin - How to configure service account when master is not deployed in K8S?

2018-12-11 Thread andretmcarmo
Hello all, I'm having issues with the Kubernetes Plugin: https://github.com/jenkinsci/kubernetes-plugin I configured it successfully with Minikube, but once I moved to a real cluster, I couldn't make it work. The plugin documentation assumes we are deploying the Jenkins master in th

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-11 Thread Carlos Sanchez
> > > On Monday, December 10, 2018 at 4:10:27 PM UTC, Carlos Sanchez wrote: >> >> You may be hitting the limit of concurrent connections to k8s api, see >> https://github.com/jenkinsci/kubernetes-plugin/blob/master/CHANGELOG.md#1136 >> >> On Mon, Dec 10, 2018

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-11 Thread Simon Young
ing on the master. Have you any idea what could be going on here? Simon. On Monday, December 10, 2018 at 4:10:27 PM UTC, Carlos Sanchez wrote: > > You may be hitting the limit of concurrent connections to k8s api, see > https://github.com/jenkinsci/kubernetes-plugin/blob/master/CHANGELOG

Re: Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-10 Thread Carlos Sanchez
You may be hitting the limit of concurrent connections to k8s api, see https://github.com/jenkinsci/kubernetes-plugin/blob/master/CHANGELOG.md#1136 On Mon, Dec 10, 2018 at 8:01 AM Simon Young < simon.yo...@nationaltrust.org.uk> wrote: > Hi, > > We are trying to use the Kubernete

Kubernetes Plugin - Fails When Executing Commands on Second Container

2018-12-10 Thread Simon Young
Hi, We are trying to use the Kubernetes Plugin to run tests in a different container - but *almost* every time we try and execute a command in the second container, the build fails immediately. I say "almost" because the build always succeeds after restarting the Jenkins master (o

Re: Kubernetes plugin - ready probe

2018-11-19 Thread Carlos Sanchez
wrote: >> >>> Hi, >>> >>> I'm doing a Jenkins pipeline with the kubernetes plugin (1.12.4). >>> >>> Currently facing some odd behaviors where steps are executed before the >>> pod is actually "ready". See some of the errors I g

Re: Kubernetes plugin - ready probe

2018-11-19 Thread Romain Grécourt
; possible error > > On Sat, Nov 17, 2018 at 1:47 PM Romain Grécourt > wrote: > >> Hi, >> >> I'm doing a Jenkins pipeline with the kubernetes plugin (1.12.4). >> >> Currently facing some odd behaviors where steps are executed before the >> pod is ac

  1   2   3   >