Skip to content

Commit 85c3049

Browse files
authored
Enable setting maxRequestsPerHostStr (#217)
* Enable setting maxRequestsPerHostStr Signed-off-by: guycarmy <guycarmy@gmail.com> * Add agent.maxRequestsPerHostStr to values summary Signed-off-by: guycarmy <guycarmy@gmail.com>
1 parent f705ef4 commit 85c3049

6 files changed

Lines changed: 17 additions & 2 deletions

File tree

charts/jenkins/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ Use the following links to reference issues, PRs, and commits prior to v2.6.0.
1212
The change log until v1.5.7 was auto-generated based on git commits.
1313
Those entries include a reference to the git commit to be able to get more details.
1414

15+
## 3.1.2
16+
17+
Enable setting maxRequestsPerHostStr to change the max concurrent connections to Kubernetes API
18+
1519
## 3.1.1
1620

1721
* Update Jenkins image and appVersion to jenkins lts release version 2.263.2
1822

23+
1924
## 3.1.0
2025

2126
* Added `.Values.controller.podSecurityContextOverride` and `.Values.backup.podSecurityContextOverride`.

charts/jenkins/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: jenkins
33
home: https://jenkins.io/
4-
version: 3.1.1
4+
version: 3.1.2
55
appVersion: 2.263.2
66
description: Jenkins - Build great things at any scale! The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
77
sources:

charts/jenkins/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,14 @@ To display such data as processed HTML instead of raw text set `controller.enabl
233233
This option requires installation of the [OWASP Markup Formatter Plugin (antisamy-markup-formatter)](https://plugins.jenkins.io/antisamy-markup-formatter/).
234234
This plugin is **not** installed by default but may be added to `controller.additionalPlugins`.
235235

236+
### Change max connections to Kubernetes API
237+
When using agents with containers other then JNLP, The kubernetes plugin will commuincate with those containers using the Kubernetes API. this changes the maximum concurrent connections
238+
```yaml
239+
agent:
240+
maxRequestsPerHostStr: "32"
241+
```
242+
This will change the configuration of the kubernetes "cloud" (as called by jenkins) that is created automatically as part of this helm chart.
243+
236244
### Mounting Volumes into Agent Pods
237245

238246
Your Jenkins Agents will run as pods, and it's possible to inject volumes where needed:

charts/jenkins/VALUES_SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ The following tables list the configurable parameters of the Jenkins chart and t
259259
| `agent.jenkinsTunnel` | Overrides the Kubernetes Jenkins tunnel | Not set |
260260
| `agent.kubernetesConnectTimeout` | The connection timeout in seconds for connections to Kubernetes API. Minimum value is 5. | 5 |
261261
| `agent.kubernetesReadTimeout` | The read timeout in seconds for connections to Kubernetes API. Minimum value is 15. | 15 |
262+
| `agent.maxRequestsPerHostStr` | The maximum concurrent connections to Kubernetes API | 32 |
262263

263264
#### Pod Configuration
264265

charts/jenkins/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ jenkins:
143143
{{- else }}
144144
webSocket: true
145145
{{- end }}
146-
maxRequestsPerHostStr: "32"
146+
maxRequestsPerHostStr: {{ .Values.agent.maxRequestsPerHostStr | quote }}
147147
name: "kubernetes"
148148
namespace: "{{ template "jenkins.agent.namespace" . }}"
149149
serverUrl: "https://kubernetes.default"

charts/jenkins/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,7 @@ agent:
488488
jenkinsTunnel:
489489
kubernetesConnectTimeout: 5
490490
kubernetesReadTimeout: 15
491+
maxRequestsPerHostStr: "32"
491492
namespace:
492493
image: "jenkins/inbound-agent"
493494
tag: "4.6-1"

0 commit comments

Comments
 (0)