[JIRA] (JENKINS-53612) Kubernetes plugin keeps trying to build when quota reached

2 views
Skip to first unread message

major@mhtx.net (JIRA)

unread,
Sep 17, 2018, 8:34:03 AM9/17/18
to jenkinsc...@googlegroups.com
Major Hayden created an issue
 
Jenkins / Improvement JENKINS-53612
Kubernetes plugin keeps trying to build when quota reached
Issue Type: Improvement Improvement
Assignee: Carlos Sanchez
Components: kubernetes-plugin
Created: 2018-09-17 12:33
Environment: Jenkins 2.121.3
kubernetes 1.12.6
Priority: Minor Minor
Reporter: Major Hayden

We use Jenkins to build containers in OpenShift (which offers a kubernetes API). However, we found that the Kubernetes plugin doesn't handle quota limits well. It keeps trying over and over again to build new containers without checking to see if the quota limit has been reached.

io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: POST at: https://172.56.0.1/api/v1/namespaces/myproject/pods. Message: Forbidden!Configured service account doesn't have access. Service account may have been revoked. pods "mycontainer" is forbidden: exceeded quota: myproject-quota, requested: limits.cpu=8, used: limits.cpu=64, limited: limits.cpu=64.

I would like to see the plugin do something like this:

  1. Plugin checks the current quota usage
  2. If the quota has been reached, sleep for a configurable amount of time
  3. Check the quota again
  4. Repeat steps 2 and 3 until there is room within the quota to build the container
  5. Request the new container via kubernetes API
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Jul 16, 2019, 3:43:28 PM7/16/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
Change By: Jesse Glick
Assignee: Carlos Sanchez
Reply all
Reply to author
Forward
0 new messages