You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`extraVolumeMounts` | Add additional volumes mounts. Passed through the `tpl` function and thus to be configured as string | `""`
50
50
`extraVolumes` | Add additional volumes. Passed through the `tpl` function and thus to be configured as string | `""`
51
51
`podAnnotations` | Annotations for the Jenkins pod | `{}`
52
-
`javaOpts` | `JAVA_OPTS` for the Jenkins process | `-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=2 -XshowSettings:vm`
52
+
`javaOpts` | `JAVA_OPTS` for the Jenkins process | see below and `values.yaml` for defaults
53
53
`extraEnv` | Allows the specification of additional environment variables for Jenkins. Passed through the `tpl` function and thus to be configured as string | `""`
54
54
`livenessProbe` | Liveness probe configuration | see `values.yaml` for defaults
55
55
`readinessProbe` | Readiness probe configuration | see `values.yaml` for defaults
@@ -118,6 +118,10 @@ By default, the following `JAVA_OPTS` are configured as environment variable:
118
118
119
119
```yaml
120
120
javaOpts: >-
121
+
-Dhudson.slaves.NodeProvisioner.initialDelay=0
122
+
-Dhudson.model.LoadStatistics.decay=0.7
123
+
-Dhudson.slaves.NodeProvisioner.MARGIN=30
124
+
-Dhudson.slaves.NodeProvisioner.MARGIN0=0.6
121
125
-XX:+UnlockExperimentalVMOptions
122
126
-XX:+UseCGroupMemoryLimitForHeap
123
127
-XX:MaxRAMFraction=2
@@ -128,6 +132,10 @@ This allows the JVM to be configured using memory settings for the container.
128
132
By default, the JVM uses 50 % of the container's available memory.
129
133
Note that the JVM will also need off-heap memory.
130
134
135
+
Agent provisioning can be configured with a set of system properties.
136
+
137
+
### Resources
138
+
131
139
Resource requests and limits should be configured.
132
140
If your Jenkins JVM should get 1 GiB of max. heap, the container should be set to 2 GiB.
133
141
@@ -197,13 +205,13 @@ The file must list the plugins to be installed.
197
205
Versions are optional and must be delimited by a colon.
198
206
Since it may not be desirable that plugins are updated when the pod is restarted, the Helm chart implements the following logic:
199
207
200
-

208
+

201
209
202
210
203
211
It is advisable to use an LTS version of Jenkins.
204
212
LTS versions have their own update centers with compatible plugin versions only.
205
213
Don't specify versions in order to get the latest compatible versions.
206
-
In order to avoid unexpected plugin updates in case the pod is rescheduled, set `forcePluginsUpdates` to `false`, which is the default, and only set it to `true` temporarily in order to update plugins.
214
+
In order to avoid unexpected plugin updates in case the pod is rescheduled, set `forcePluginUpdates` to `false`, which is the default, and only set it to `true` temporarily in order to update plugins.
207
215
208
216
#### Configuration as Code
209
217
@@ -387,3 +395,72 @@ However, if your Jenkins Master or any of the agents need to access the Kubernet
387
395
388
396
The chart allows configuring ServiceAccounts and RBAC resources for the master as well as for any agents.
389
397
ServiceAcounts for agents can then be assigned in pod templates.
398
+
399
+
### Updating Java's Truststore
400
+
401
+
In order to add a certificate to the truststore, we can copy it to a different location, add the certificate, and configure Java to use the updated truststore.
402
+
403
+
You need to create a configmap containing the certificate.
404
+
This has to be done upfront and is not part of the Helm chart.
0 commit comments