Questions tagged [jenkins-kubernetes]
49 questions
0
votes
1 answer
In jenkins-kubernetes-plugin, how to generate labels in Pod template that are based on a pattern
Set-Up
I am using jenkins-kubernetes-plugin to run our QE jobs. The QE jobs are executed over multiple PODs and each POD has a static set of labels like testing chrome
Issue:
In these QE jobs, there is one port say 7900 that I want to expose through…

JDev
- 1,662
- 4
- 25
- 55
0
votes
0 answers
Not able to Run Docker build on K8S : Permission denied
I have installed bitnami/jenkins on my Managed Kubernetes cluster.
I need to run Jenkins job which will build docker image and push to docker repository.
When I do this on a Jenkins instance in a simple container on host, I simply mount docker.sock…

Ashok Krishnamoorthy
- 853
- 2
- 14
- 24
0
votes
1 answer
Jenkins Kubernetes Plugin URL Connection Fails After Some Time
I run into a strange issue, as the title suggests.
I am running my Jenkins on a Kubernetes cluster on IBM Cloud. I used the kubernetes plugin to configure a cloud and dynamically create a slave container to run jobs.
When I set up this cloud…

Andrei S
- 58
- 1
- 8
0
votes
0 answers
Use existing service in Kubernetes via Jenkins
I have a Jenkins pipeline which runs an application in cloud using Kubernetes plugin.
So far, I have a simple yaml file which configures a pod. The Jenkins pipeline creates a pod and it does some operations (It's parsing some data).
I've created a…

Dragos Roban
- 479
- 2
- 11
- 20
0
votes
0 answers
upgrade Kubernetes plugin to 1.28.6 break our pipeline flows
Jenkins Master : 2.282
Kubernetes plugin 1.28.5
after upgrade Kubernetes to 1.28.6 version , we find out that part of our pipelines that use yaml from shared library
our shared library yaml
agent {
kubernetes {
cloud…

Mor Lajb
- 2,546
- 1
- 15
- 28
0
votes
1 answer
Jenkins slave as a kubernetes pod
I have created kubernetes cluster in GCP and top of it i have configured jenkins in kubernetes using the below url
https://cloud.google.com/solutions/jenkins-on-kubernetes-engine-tutorial
I am able to run jenkins build with normal commands and it is…

sai manikanta
- 29
- 3
0
votes
0 answers
Config Jenkins slave using Google Kubernetes Engine
I'm trying to setup Jenkins slave using Kubernetes using kubernetes plugin. My goal is to have the plugin spin up a GKE container each time there is a job need to run.
I have done the below setup:
1 - create new cluster
2 - create service account…

Lê Khánh Vinh
- 2,591
- 5
- 31
- 77
0
votes
0 answers
K8s Jenkins agent pod not able to create file permission denied
I am using Jenkins on K8S.
Suddenly my one of the container is failing inside the Jenkinsfile, yesterday everything was working fine, but suddently it's failing
I have not upgrade any plugins and not even install any new plugins.
Edit: I have…

Alpesh Jikadra
- 1,692
- 3
- 18
- 38
0
votes
1 answer
hostPathVolume not mounting on Kubernetes pods(Dynamic Jenkins Agent)
Environment:
Jenkins - Version 2.235.5 (LTS)
Kubernetes Jenkins Plugin - 1.27.7
K8s-Master & Worker Server Details:-
OS - CentOS Linux release 7.9.2009 (Core) & Kernal - 3.10.0-1160.6.1.el7.x86_64
Docker Version - 19.03.12
Client Version:…

user4948798
- 1,924
- 4
- 43
- 89
0
votes
1 answer
Jenkins pulling plugins returns 404
I am using Jenkins with kubernetes and my kubernetes pod is not able to start. I can see this in the log:
08:35:39 Failed in the last attempt (curl -sSfL --connect-timeout 20 --retry 3 --retry-delay 0 --retry-max-time 60…

Bob
- 8,392
- 12
- 55
- 96
0
votes
0 answers
Using Kubernetes plugin for Jenkins project instead of pipeline
I'm using the Kubernetes plugin for Jenkins (https://github.com/jenkinsci/kubernetes-plugin).
Using their documentation, I was able to create a Jenkins Pipeline to create a pod and run some maven commands inside the maven container within the pod…

chief
- 11
- 4
0
votes
1 answer
Kubernetes jenkins agent fails & shows - tcpSlaveAgentListener
I am runningJenkins Master & K8s-Master on same server. Jenkins running through tomcat Apache(not on K8s cluster). I have another server for K8s-Worker-Node, On both the server CentOS-8 OS installed. I have configured Jenkins Kubernetes Plugin…

user4948798
- 1,924
- 4
- 43
- 89
0
votes
1 answer
Running a command inside a docker image in Jenkins Pipeline Stage
I have a simple Jenkins pipeline which creates a pod with 3 containers - jnlp, dind, example-test
This looks as follows -
agent {
kubernetes {
yaml """
apiVersion: v1
kind: Pod
metadata:
name: example-pb
annotations:
…

Pranav Bhatia
- 440
- 2
- 6
- 10
0
votes
0 answers
ERROR: ERROR: java.lang.RuntimeException: io.kubernetes.client.openapi.ApiException: Forbidden
Hi I am trying to integrate kubernates with jenkins using kubernates deployment plugin.i configured all the details correctly and mentioned kubeconfig file in jenkins but it is not running yaml files specifice name space instead it is running…

qadhava sharath
- 3
- 4
0
votes
1 answer
Configure pod retention value of jenkins kubernetes plugin using groovy
Trying to configure pod retention value for Jenkins Kubernetes plugin using
groovy script.
kubernetes.setPodRetention(org.csanchez.jenkins.plugins.kubernetes.pod.retention.Podretention.Never())
method is failing to configure with below error…

santhosh r ch
- 1
- 2