values.yaml 56 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396
  1. # Default values for jenkins.
  2. # This is a YAML-formatted file.
  3. # Declare name/value pairs to be passed into your templates.
  4. # name: value
  5. ## Overrides for generated resource names
  6. # See templates/_helpers.tpl
  7. # -- Override the resource name prefix
  8. # @default -- `Chart.Name`
  9. nameOverride:
  10. # -- Override the full resource names
  11. # @default -- `jenkins-(release-name)` or `jenkins` if the release-name is `jenkins`
  12. fullnameOverride:
  13. # -- Override the deployment namespace
  14. # @default -- `Release.Namespace`
  15. namespaceOverride:
  16. # For FQDN resolving of the controller service. Change this value to match your existing configuration.
  17. # ref: https://github.com/kubernetes/dns/blob/master/docs/specification.md
  18. # -- Override the cluster name for FQDN resolving
  19. clusterZone: "cluster.local"
  20. # -- The URL of the Kubernetes API server
  21. kubernetesURL: "https://kubernetes.default"
  22. # -- The Jenkins credentials to access the Kubernetes API server. For the default cluster it is not needed.
  23. credentialsId:
  24. # -- Enables rendering of the helm.sh/chart label to the annotations
  25. renderHelmLabels: true
  26. # -- Configures extra labels for the agent all objects
  27. extraLabels: {}
  28. controller:
  29. # -- Used for label app.kubernetes.io/component
  30. componentName: "jenkins-controller"
  31. image:
  32. # -- Controller image registry
  33. registry: "docker.io"
  34. # -- Controller image repository
  35. repository: "jenkins/jenkins"
  36. # -- Controller image tag override; i.e., tag: "2.440.1-jdk21"
  37. tag:
  38. # -- Controller image tag label
  39. tagLabel: jdk21
  40. # -- Controller image pull policy
  41. pullPolicy: "Always"
  42. # -- Controller image pull secret
  43. imagePullSecretName:
  44. # -- Lifecycle specification for controller-container
  45. lifecycle: {}
  46. # postStart:
  47. # exec:
  48. # command:
  49. # - "uname"
  50. # - "-a"
  51. # -- Disable use of remember me
  52. disableRememberMe: false
  53. # -- Set Number of executors
  54. numExecutors: 0
  55. # -- Sets the executor mode of the Jenkins node. Possible values are "NORMAL" or "EXCLUSIVE"
  56. executorMode: "NORMAL"
  57. # -- Append Jenkins labels to the controller
  58. customJenkinsLabels: []
  59. hostNetworking: false
  60. # When enabling LDAP or another non-Jenkins identity source, the built-in admin account will no longer exist.
  61. # If you disable the non-Jenkins identity store and instead use the Jenkins internal one,
  62. # you should revert controller.admin.username to your preferred admin user:
  63. admin:
  64. # -- Admin username created as a secret if `controller.admin.createSecret` is true
  65. username: "admin"
  66. # -- Admin password created as a secret if `controller.admin.createSecret` is true
  67. # @default -- <random password>
  68. password:
  69. # -- The key in the existing admin secret containing the username
  70. userKey: jenkins-admin-user
  71. # -- The key in the existing admin secret containing the password
  72. passwordKey: jenkins-admin-password
  73. # The default configuration uses this secret to configure an admin user
  74. # If you don't need that user or use a different security realm, then you can disable it
  75. # -- Create secret for admin user
  76. createSecret: true
  77. # -- The name of an existing secret containing the admin credentials
  78. existingSecret: ""
  79. # -- Email address for the administrator of the Jenkins instance
  80. jenkinsAdminEmail:
  81. # This value should not be changed unless you use your custom image of jenkins or any derived from.
  82. # If you want to use Cloudbees Jenkins Distribution docker, you should set jenkinsHome: "/var/cloudbees-jenkins-distribution"
  83. # -- Custom Jenkins home path
  84. jenkinsHome: "/var/jenkins_home"
  85. # This value should not be changed unless you use your custom image of jenkins or any derived from.
  86. # If you want to use Cloudbees Jenkins Distribution docker, you should set jenkinsRef: "/usr/share/cloudbees-jenkins-distribution/ref"
  87. # -- Custom Jenkins reference path
  88. jenkinsRef: "/usr/share/jenkins/ref"
  89. # Path to the jenkins war file which is used by jenkins-plugin-cli.
  90. jenkinsWar: "/usr/share/jenkins/jenkins.war"
  91. # Override the default arguments passed to the war
  92. # overrideArgs:
  93. # - --httpPort=8080
  94. # -- Resource allocation (Requests and Limits)
  95. resources:
  96. requests:
  97. cpu: "50m"
  98. memory: "256Mi"
  99. limits:
  100. cpu: "2000m"
  101. memory: "4096Mi"
  102. # Share process namespace to allow sidecar containers to interact with processes in other containers in the same pod
  103. shareProcessNamespace: false
  104. # Service links might cause issue if running in a namespace with a large amount of services
  105. # that might cause a slow startup when plugins are copied from ref to volume
  106. # Set to true to keep previous behavior
  107. # See https://github.com/kubernetes/kubernetes/issues/121787
  108. enableServiceLinks: false
  109. # Overrides the init container default values
  110. # -- Resources allocation (Requests and Limits) for Init Container
  111. initContainerResources: {}
  112. # initContainerResources:
  113. # requests:
  114. # cpu: "50m"
  115. # memory: "256Mi"
  116. # limits:
  117. # cpu: "2000m"
  118. # memory: "4096Mi"
  119. # -- Environment variable sources for Init Container
  120. initContainerEnvFrom: []
  121. # useful for i.e., http_proxy
  122. # -- Environment variables for Init Container
  123. initContainerEnv: []
  124. # initContainerEnv:
  125. # - name: http_proxy
  126. # value: "http://192.168.64.1:3128"
  127. # -- Environment variable sources for Jenkins Container
  128. containerEnvFrom: []
  129. # -- Environment variables for Jenkins Container
  130. containerEnv: []
  131. # - name: http_proxy
  132. # value: "http://192.168.64.1:3128"
  133. # Set min/max heap here if needed with "-Xms512m -Xmx512m"
  134. # -- Append to `JAVA_OPTS` env var
  135. javaOpts:
  136. # -- Append to `JENKINS_OPTS` env var
  137. jenkinsOpts:
  138. # If you are using the ingress definitions provided by this chart via the `controller.ingress` block,
  139. # the configured hostname will be the ingress hostname starting with `https://`
  140. # or `http://` depending on the `tls` configuration.
  141. # The Protocol can be overwritten by specifying `controller.jenkinsUrlProtocol`.
  142. # -- Set protocol for Jenkins URL; `https` if `controller.ingress.tls`, `http` otherwise
  143. jenkinsUrlProtocol:
  144. # -- Set Jenkins URL if you are not using the ingress definitions provided by the chart
  145. jenkinsUrl:
  146. # If you set this prefix and use ingress controller, then you might want to set the ingress path below
  147. # I.e., "/jenkins"
  148. # -- Root URI Jenkins will be served on
  149. jenkinsUriPrefix:
  150. # -- Enable pod security context (must be `true` if podSecurityContextOverride, runAsUser or fsGroup are set)
  151. usePodSecurityContext: true
  152. # Note that `runAsUser`, `fsGroup`, and `securityContextCapabilities` are
  153. # being deprecated and replaced by `podSecurityContextOverride`.
  154. # Set runAsUser to 1000 to let Jenkins run as non-root user 'jenkins', which exists in 'jenkins/jenkins' docker image.
  155. # When configuring runAsUser to a different value than 0 also set fsGroup to the same value:
  156. # -- Deprecated in favor of `controller.podSecurityContextOverride`. uid that jenkins runs with.
  157. runAsUser: 1000
  158. # -- Deprecated in favor of `controller.podSecurityContextOverride`. uid that will be used for persistent volume.
  159. fsGroup: 1000
  160. # If you have PodSecurityPolicies that require dropping of capabilities as suggested by CIS K8s benchmark, put them here
  161. # securityContextCapabilities:
  162. # drop:
  163. # - NET_RAW
  164. securityContextCapabilities: {}
  165. # In the case of mounting an ext4 filesystem, it might be desirable to use `supplementalGroups` instead of `fsGroup` in
  166. # the `securityContext` block: https://github.com/kubernetes/kubernetes/issues/67014#issuecomment-589915496
  167. # podSecurityContextOverride:
  168. # runAsUser: 1000
  169. # runAsNonRoot: true
  170. # supplementalGroups: [1000]
  171. # capabilities: {}
  172. # -- Completely overwrites the contents of the pod security context, ignoring the values provided for `runAsUser`, `fsGroup`, and `securityContextCapabilities`
  173. podSecurityContextOverride: ~
  174. # -- Allow controlling the securityContext for the jenkins container
  175. containerSecurityContext:
  176. runAsUser: 1000
  177. runAsGroup: 1000
  178. readOnlyRootFilesystem: true
  179. allowPrivilegeEscalation: false
  180. # -- enable or disable the controller k8s service
  181. serviceEnabled: true
  182. # For minikube, set this to NodePort, elsewhere uses LoadBalancer
  183. # Use ClusterIP if your setup includes ingress controller
  184. # -- k8s service type
  185. serviceType: NodePort
  186. # -- k8s service clusterIP. Only used if serviceType is ClusterIP
  187. clusterIp:
  188. # -- k8s service port
  189. servicePort: 8080
  190. # -- k8s target port
  191. targetPort: 8080
  192. # -- k8s node port. Only used if serviceType is NodePort
  193. nodePort: 32000
  194. # Use Local to preserve the client source IP and avoids a second hop for LoadBalancer and NodePort type services,
  195. # but risks potentially imbalanced traffic spreading.
  196. serviceExternalTrafficPolicy:
  197. # If enabled, the controller is available through its service before its pods reports ready. Makes startup screen and
  198. # auto-reload on restart feature possible.
  199. publishNotReadyAddresses:
  200. # -- Jenkins controller service annotations
  201. serviceAnnotations: {}
  202. # -- Jenkins controller custom labels for the StatefulSet
  203. statefulSetLabels: {}
  204. # foo: bar
  205. # bar: foo
  206. # -- Labels for the Jenkins controller-service
  207. serviceLabels: {}
  208. # service.beta.kubernetes.io/aws-load-balancer-backend-protocol: https
  209. # Put labels on Jenkins controller pod
  210. # -- Custom Pod labels (an object with `label-key: label-value` pairs)
  211. podLabels: {}
  212. # Enable Kubernetes Startup, Liveness and Readiness Probes
  213. # if Startup Probe is supported, enable it too
  214. # ~ 2 minutes to allow Jenkins to restart when upgrading plugins. Set ReadinessTimeout to be shorter than LivenessTimeout.
  215. # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes
  216. # -- Enable Kubernetes Probes configuration configured in `controller.probes`
  217. healthProbes: true
  218. probes:
  219. startupProbe:
  220. # -- Set the failure threshold for the startup probe
  221. failureThreshold: 12
  222. httpGet:
  223. # -- Set the Pod's HTTP path for the startup probe
  224. path: '{{ default "" .Values.controller.jenkinsUriPrefix }}/login'
  225. # -- Set the Pod's HTTP port to use for the startup probe
  226. port: http
  227. # -- Set the time interval between two startup probes executions in seconds
  228. periodSeconds: 10
  229. # -- Set the timeout for the startup probe in seconds
  230. timeoutSeconds: 5
  231. livenessProbe:
  232. # -- Set the failure threshold for the liveness probe
  233. failureThreshold: 5
  234. httpGet:
  235. # -- Set the Pod's HTTP path for the liveness probe
  236. path: '{{ default "" .Values.controller.jenkinsUriPrefix }}/login'
  237. # -- Set the Pod's HTTP port to use for the liveness probe
  238. port: http
  239. # -- Set the time interval between two liveness probes executions in seconds
  240. periodSeconds: 10
  241. # -- Set the timeout for the liveness probe in seconds
  242. timeoutSeconds: 5
  243. # If Startup Probe is not supported on your Kubernetes cluster, you might want to use "initialDelaySeconds" instead.
  244. # It delays the initial liveness probe while Jenkins is starting
  245. # -- Set the initial delay for the liveness probe in seconds
  246. initialDelaySeconds:
  247. readinessProbe:
  248. # -- Set the failure threshold for the readiness probe
  249. failureThreshold: 3
  250. httpGet:
  251. # -- Set the Pod's HTTP path for the liveness probe
  252. path: '{{ default "" .Values.controller.jenkinsUriPrefix }}/login'
  253. # -- Set the Pod's HTTP port to use for the readiness probe
  254. port: http
  255. # -- Set the time interval between two readiness probes executions in seconds
  256. periodSeconds: 10
  257. # -- Set the timeout for the readiness probe in seconds
  258. timeoutSeconds: 5
  259. # If Startup Probe is not supported on your Kubernetes cluster, you might want to use "initialDelaySeconds" instead.
  260. # It delays the initial readiness probe while Jenkins is starting
  261. # -- Set the initial delay for the readiness probe in seconds
  262. initialDelaySeconds:
  263. # PodDisruptionBudget config
  264. podDisruptionBudget:
  265. # ref: https://kubernetes.io/docs/tasks/run-application/configure-pdb/
  266. # -- Enable Kubernetes Pod Disruption Budget configuration
  267. enabled: false
  268. # For Kubernetes v1.5+, use 'policy/v1beta1'
  269. # For Kubernetes v1.21+, use 'policy/v1'
  270. # -- Policy API version
  271. apiVersion: "policy/v1beta1"
  272. annotations: {}
  273. labels: {}
  274. # -- Number of pods that can be unavailable. Either an absolute number or a percentage
  275. maxUnavailable: "0"
  276. # -- Create Agent listener service
  277. agentListenerEnabled: true
  278. # -- Listening port for agents
  279. agentListenerPort: 50000
  280. # -- Host port to listen for agents
  281. agentListenerHostPort:
  282. # -- Node port to listen for agents
  283. agentListenerNodePort:
  284. # ref: https://kubernetes.io/docs/concepts/services-networking/service/#traffic-policies
  285. # -- Traffic Policy of for the agentListener service
  286. agentListenerExternalTrafficPolicy:
  287. # -- Allowed inbound IP for the agentListener service
  288. agentListenerLoadBalancerSourceRanges:
  289. - 0.0.0.0/0
  290. # -- Disabled agent protocols
  291. disabledAgentProtocols:
  292. - JNLP-connect
  293. - JNLP2-connect
  294. csrf:
  295. defaultCrumbIssuer:
  296. # -- Enable the default CSRF Crumb issuer
  297. enabled: true
  298. # -- Enable proxy compatibility
  299. proxyCompatability: true
  300. # Kubernetes service type for the JNLP agent service
  301. # agentListenerServiceType is the Kubernetes Service type for the JNLP agent service,
  302. # either 'LoadBalancer', 'NodePort', or 'ClusterIP'
  303. # Note if you set this to 'LoadBalancer', you *must* define annotations to secure it. By default,
  304. # this will be an external load balancer and allowing inbound 0.0.0.0/0, a HUGE
  305. # security risk: https://github.com/kubernetes/charts/issues/1341
  306. # -- Defines how to expose the agentListener service
  307. agentListenerServiceType: "ClusterIP"
  308. # -- Annotations for the agentListener service
  309. agentListenerServiceAnnotations: {}
  310. # Optionally, assign an IP to the LoadBalancer agentListenerService LoadBalancer
  311. # GKE users: only regional static IPs will work for Service Load balancer.
  312. # -- Static IP for the agentListener LoadBalancer
  313. agentListenerLoadBalancerIP:
  314. # -- Whether legacy remoting security should be enabled
  315. legacyRemotingSecurityEnabled: false
  316. # Example of a 'LoadBalancer'-type agent listener with annotations securing it
  317. # agentListenerServiceType: LoadBalancer
  318. # agentListenerServiceAnnotations:
  319. # service.beta.kubernetes.io/aws-load-balancer-internal: "True"
  320. # service.beta.kubernetes.io/load-balancer-source-ranges: "172.0.0.0/8, 10.0.0.0/8"
  321. # LoadBalancerSourcesRange is a list of allowed CIDR values, which are combined with ServicePort to
  322. # set allowed inbound rules on the security group assigned to the controller load balancer
  323. # -- Allowed inbound IP addresses
  324. loadBalancerSourceRanges:
  325. - 0.0.0.0/0
  326. # -- Optionally assign a known public LB IP
  327. loadBalancerIP:
  328. # Optionally configure a JMX port. This requires additional javaOpts, for example,
  329. # javaOpts: >
  330. # -Dcom.sun.management.jmxremote.port=4000
  331. # -Dcom.sun.management.jmxremote.authenticate=false
  332. # -Dcom.sun.management.jmxremote.ssl=false
  333. # jmxPort: 4000
  334. # -- Open a port, for JMX stats
  335. jmxPort:
  336. # -- Optionally configure other ports to expose in the controller container
  337. extraPorts: []
  338. # - name: BuildInfoProxy
  339. # port: 9000
  340. # targetPort: 9010 (Optional: Use to explicitly set targetPort if different from port)
  341. # Plugins will be installed during Jenkins controller start
  342. # -- List of Jenkins plugins to install. If you don't want to install plugins, set it to `false`
  343. installPlugins:
  344. - kubernetes:4384.v1b_6367f393d9
  345. - workflow-aggregator:608.v67378e9d3db_1
  346. - git:5.7.0
  347. - configuration-as-code:1995.v540b_50a_eb_0c1
  348. - job-dsl:1.93
  349. # If set to false, Jenkins will download the minimum required version of all dependencies.
  350. # -- Download the minimum required version or latest version of all dependencies
  351. installLatestPlugins: true
  352. # -- Set to true to download the latest version of any plugin that is requested to have the latest version
  353. installLatestSpecifiedPlugins: false
  354. # -- List of plugins to install in addition to those listed in controller.installPlugins
  355. additionalPlugins: []
  356. # Without this; whenever the controller gets restarted (Evicted, etc.) it will fetch plugin updates that have the potential to cause breakage.
  357. # Note that for this to work, `persistence.enabled` needs to be set to `true`
  358. # -- Initialize only on first installation. Ensures plugins do not get updated inadvertently. Requires `persistence.enabled` to be set to `true`
  359. initializeOnce: false
  360. # Enable to always override the installed plugins with the values of 'controller.installPlugins' on upgrade or redeployment.
  361. # -- Overwrite installed plugins on start
  362. overwritePlugins: false
  363. # Configures if plugins bundled with `controller.image` should be overwritten with the values of 'controller.installPlugins' on upgrade or redeployment.
  364. # -- Overwrite plugins that are already installed in the controller image
  365. overwritePluginsFromImage: true
  366. # Configures the restrictions for naming projects. Set this key to null or empty to skip it in the default config.
  367. projectNamingStrategy: standard
  368. # Useful with ghprb plugin. The OWASP plugin is not installed by default, please update controller.installPlugins.
  369. # -- Enable HTML parsing using OWASP Markup Formatter Plugin (antisamy-markup-formatter)
  370. enableRawHtmlMarkupFormatter: false
  371. # This is ignored if enableRawHtmlMarkupFormatter is true
  372. # -- Yaml of the markup formatter to use
  373. markupFormatter: plainText
  374. # Used to approve a list of groovy functions in pipelines used the script-security plugin. Can be viewed under /scriptApproval
  375. # -- List of groovy functions to approve
  376. scriptApproval: []
  377. # - "method groovy.json.JsonSlurperClassic parseText java.lang.String"
  378. # - "new groovy.json.JsonSlurperClassic"
  379. # -- Map of groovy init scripts to be executed during Jenkins controller start
  380. initScripts: {}
  381. # test: |-
  382. # print 'adding global pipeline libraries, register properties, bootstrap jobs...'
  383. # -- Name of the existing ConfigMap that contains init scripts
  384. initConfigMap:
  385. # 'name' is a name of an existing secret in the same namespace as jenkins,
  386. # 'keyName' is the name of one of the keys inside the current secret.
  387. # the 'name' and 'keyName' are concatenated with a '-' in between, so for example:
  388. # an existing secret "secret-credentials" and a key inside it named "github-password" should be used in JCasC as ${secret-credentials-github-password}
  389. # 'name' and 'keyName' must be lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-',
  390. # and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc')
  391. # existingSecret existing secret "secret-credentials" and a key inside it named "github-username" should be used in JCasC as ${github-username}
  392. # When using existingSecret no need to specify the keyName under additionalExistingSecrets.
  393. existingSecret:
  394. # -- List of additional existing secrets to mount
  395. additionalExistingSecrets: []
  396. # ref: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/features/secrets.adoc#kubernetes-secrets
  397. # additionalExistingSecrets:
  398. # - name: secret-name-1
  399. # keyName: username
  400. # - name: secret-name-1
  401. # keyName: password
  402. # -- List of additional secrets to create and mount
  403. additionalSecrets: []
  404. # ref: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/features/secrets.adoc#kubernetes-secrets
  405. # additionalSecrets:
  406. # - name: nameOfSecret
  407. # value: secretText
  408. # Generate SecretClaim resources to create Kubernetes secrets from HashiCorp Vault using kube-vault-controller.
  409. # 'name' is the name of the secret that will be created in Kubernetes. The Jenkins fullname is prepended to this value.
  410. # 'path' is the fully qualified path to the secret in Vault
  411. # 'type' is an optional Kubernetes secret type. The default is 'Opaque'
  412. # 'renew' is an optional secret renewal time in seconds
  413. # -- List of `SecretClaim` resources to create
  414. secretClaims: []
  415. # - name: secretName # required
  416. # path: testPath # required
  417. # type: kubernetes.io/tls # optional
  418. # renew: 60 # optional
  419. # -- Name of default cloud configuration.
  420. cloudName: "kubernetes"
  421. # Below is the implementation of Jenkins Configuration as Code. Add a key under configScripts for each configuration area,
  422. # where each corresponds to a plugin or section of the UI. Each key (prior to | character) is just a label, and can be any value.
  423. # Keys are only used to give the section a meaningful name. The only restriction is they may only contain RFC 1123 \ DNS label
  424. # characters: lowercase letters, numbers, and hyphens. The keys become the name of a configuration yaml file on the controller in
  425. # /var/jenkins_home/casc_configs (by default) and will be processed by the Configuration as Code Plugin. The lines after each |
  426. # become the content of the configuration yaml file. The first line after this is a JCasC root element, e.g., jenkins, credentials,
  427. # etc. Best reference is https://<jenkins_url>/configuration-as-code/reference. The example below creates a welcome message:
  428. JCasC:
  429. # -- Enables default Jenkins configuration via configuration as code plugin
  430. defaultConfig: false
  431. # If true, the init container deletes all the plugin config files and Jenkins Config as Code overwrites any existing configuration
  432. # -- Whether Jenkins Config as Code should overwrite any existing configuration
  433. overwriteConfiguration: false
  434. # -- Remote URLs for configuration files.
  435. configUrls: []
  436. # - https://acme.org/jenkins.yaml
  437. # -- List of Jenkins Config as Code scripts
  438. configScripts:
  439. welcome-message: |
  440. jenkins:
  441. systemMessage: Bienvenid@ a nuestro servidor CI\CD.
  442. ubicacion: |
  443. unclassified:
  444. location:
  445. url: http://jenkins-okd.reymota.es
  446. adminAddress: "celestino.rey@gmail.com"
  447. # Allows adding to the top-level security JCasC section. For legacy purposes, by default, the chart includes apiToken configurations
  448. # -- Jenkins Config as Code security-section
  449. security:
  450. apiToken:
  451. creationOfLegacyTokenEnabled: false
  452. tokenGenerationOnCreationEnabled: false
  453. usageStatisticsEnabled: true
  454. # Ignored if securityRealm is defined in controller.JCasC.configScripts
  455. # -- Jenkins Config as Code Security Realm-section
  456. securityRealm: |-
  457. local:
  458. allowsSignup: false
  459. enableCaptcha: false
  460. users:
  461. - id: "${chart-admin-username}"
  462. name: "Jenkins Admin"
  463. password: "${chart-admin-password}"
  464. # Ignored if authorizationStrategy is defined in controller.JCasC.configScripts
  465. # -- Jenkins Config as Code Authorization Strategy-section
  466. authorizationStrategy: |-
  467. loggedInUsersCanDoAnything:
  468. allowAnonymousRead: false
  469. # -- Annotations for the JCasC ConfigMap
  470. configMapAnnotations: {}
  471. # -- Custom init-container specification in raw-yaml format
  472. customInitContainers: []
  473. # - name: custom-init
  474. # image: "alpine:3"
  475. # imagePullPolicy: Always
  476. # command: [ "uname", "-a" ]
  477. sidecars:
  478. configAutoReload:
  479. # If enabled: true, Jenkins Configuration as Code will be reloaded on-the-fly without a reboot.
  480. # If false or not-specified, JCasC changes will cause a reboot and will only be applied at the subsequent start-up.
  481. # Auto-reload uses the http://<jenkins_url>/reload-configuration-as-code endpoint to reapply config when changes to
  482. # the configScripts are detected.
  483. # -- Enable Jenkins Config as Code auto-reload
  484. enabled: true
  485. image:
  486. # -- Registry for the image that triggers the reload
  487. registry: docker.io
  488. # -- Repository of the image that triggers the reload
  489. repository: kiwigrid/k8s-sidecar
  490. # -- Tag for the image that triggers the reload
  491. tag: 1.30.7
  492. imagePullPolicy: IfNotPresent
  493. resources:
  494. {}
  495. # limits:
  496. # cpu: 100m
  497. # memory: 100Mi
  498. # requests:
  499. # cpu: 50m
  500. # memory: 50Mi
  501. # -- Enables additional volume mounts for the config auto-reload container
  502. additionalVolumeMounts:
  503. []
  504. # - name: auto-reload-config
  505. # mountPath: /var/config/logger
  506. # - name: auto-reload-logs
  507. # mountPath: /var/log/auto_reload
  508. # -- Config auto-reload logging settings
  509. logging:
  510. # See default settings https://github.com/kiwigrid/k8s-sidecar/blob/master/src/logger.py
  511. configuration:
  512. # -- Enables custom log config utilizing using the settings below.
  513. override: false
  514. logLevel: INFO
  515. formatter: JSON
  516. logToConsole: true
  517. logToFile: false
  518. maxBytes: 1024
  519. backupCount: 3
  520. # -- The scheme to use when connecting to the Jenkins configuration as code endpoint
  521. scheme: http
  522. # -- Skip TLS verification when connecting to the Jenkins configuration as code endpoint
  523. skipTlsVerify: false
  524. # -- How many connection-related errors to retry on
  525. reqRetryConnect: 10
  526. # -- How many seconds to wait before updating config-maps/secrets (sets METHOD=SLEEP on the sidecar)
  527. sleepTime:
  528. # -- Environment variable sources for the Jenkins Config as Code auto-reload container
  529. envFrom: []
  530. # -- Environment variables for the Jenkins Config as Code auto-reload container
  531. env: []
  532. # - name: REQ_TIMEOUT
  533. # value: "30"
  534. # SSH port value can be set to any unused TCP port. The default, 1044, is a non-standard SSH port that has been chosen at random.
  535. # This is only used to reload JCasC config from the sidecar container running in the Jenkins controller pod.
  536. # This TCP port will not be open in the pod (unless you specifically configure this), so Jenkins will not be
  537. # accessible via SSH from outside the pod. Note if you use non-root pod privileges (runAsUser & fsGroup),
  538. # this must be > 1024:
  539. sshTcpPort: 1044
  540. # folder in the pod that should hold the collected dashboards:
  541. folder: "/var/jenkins_home/casc_configs"
  542. # If specified, the sidecar will search for JCasC config-maps inside this namespace.
  543. # Otherwise, the namespace in which the sidecar is running will be used.
  544. # It's also possible to specify ALL to search in all namespaces:
  545. # searchNamespace:
  546. # -- Enable container security context
  547. containerSecurityContext:
  548. readOnlyRootFilesystem: true
  549. allowPrivilegeEscalation: false
  550. # -- Configures additional sidecar container(s) for the Jenkins controller
  551. additionalSidecarContainers: []
  552. ## The example below runs the client for https://smee.io as sidecar container next to Jenkins,
  553. ## that allows triggering build behind a secure firewall.
  554. ## https://jenkins.io/blog/2019/01/07/webhook-firewalls/#triggering-builds-with-webhooks-behind-a-secure-firewall
  555. ##
  556. ## Note: To use it you should go to https://smee.io/new and update the url to the generated one.
  557. # - name: smee
  558. # image: docker.io/twalter/smee-client:1.0.2
  559. # args: ["--port", "{{ .Values.controller.servicePort }}", "--path", "/github-webhook/", "--url", "https://smee.io/new"]
  560. # resources:
  561. # limits:
  562. # cpu: 50m
  563. # memory: 128Mi
  564. # requests:
  565. # cpu: 10m
  566. # memory: 32Mi
  567. # -- Name of the Kubernetes scheduler to use
  568. schedulerName: ""
  569. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  570. # -- Node labels for pod assignment
  571. nodeSelector: {}
  572. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
  573. # -- Toleration labels for pod assignment
  574. tolerations: []
  575. # -- Set TerminationGracePeriodSeconds
  576. terminationGracePeriodSeconds:
  577. # -- Set the termination message path
  578. terminationMessagePath:
  579. # -- Set the termination message policy
  580. terminationMessagePolicy:
  581. # -- Affinity settings
  582. affinity: {}
  583. # Leverage a priorityClass to ensure your pods survive resource shortages
  584. # ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  585. # -- The name of a `priorityClass` to apply to the controller pod
  586. priorityClassName:
  587. # -- Annotations for controller pod
  588. podAnnotations: {}
  589. # -- Annotations for controller StatefulSet
  590. statefulSetAnnotations: {}
  591. # ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  592. # -- Update strategy for StatefulSet
  593. updateStrategy: {}
  594. # -- Topology spread constraints
  595. topologySpreadConstraints: {}
  596. ingress:
  597. # -- Enables ingress
  598. enabled: false
  599. # Override for the default paths that map requests to the backend
  600. # -- Override for the default Ingress paths
  601. paths: []
  602. # - backend:
  603. # serviceName: ssl-redirect
  604. # servicePort: use-annotation
  605. # - backend:
  606. # serviceName: >-
  607. # {{ template "jenkins.fullname" . }}
  608. # # Don't use string here, use only integer value!
  609. # servicePort: 8080
  610. # For Kubernetes v1.14+, use 'networking.k8s.io/v1beta1'
  611. # For Kubernetes v1.19+, use 'networking.k8s.io/v1'
  612. # -- Ingress API version
  613. apiVersion: "extensions/v1beta1"
  614. # -- Ingress labels
  615. labels: {}
  616. # -- Ingress annotations
  617. annotations:
  618. {}
  619. # kubernetes.io/ingress.class: nginx
  620. # kubernetes.io/tls-acme: "true"
  621. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  622. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  623. # ingressClassName: nginx
  624. # Set this path to jenkinsUriPrefix above or use annotations to rewrite path
  625. # -- Ingress path
  626. path:
  627. # configures the hostname e.g. jenkins.example.com
  628. # -- Ingress hostname
  629. hostName:
  630. # -- Hostname to serve assets from
  631. resourceRootUrl:
  632. # -- Ingress TLS configuration
  633. tls: []
  634. # - secretName: jenkins.cluster.local
  635. # hosts:
  636. # - jenkins.cluster.local
  637. # often you want to have your controller all locked down and private,
  638. # but you still want to get webhooks from your SCM
  639. # A secondary ingress will let you expose different urls
  640. # with a different configuration
  641. secondaryingress:
  642. enabled: false
  643. # paths you want forwarded to the backend
  644. # ex /github-webhook
  645. paths: []
  646. # For Kubernetes v1.14+, use 'networking.k8s.io/v1beta1'
  647. # For Kubernetes v1.19+, use 'networking.k8s.io/v1'
  648. apiVersion: "extensions/v1beta1"
  649. labels: {}
  650. annotations: {}
  651. # kubernetes.io/ingress.class: nginx
  652. # kubernetes.io/tls-acme: "true"
  653. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  654. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  655. # ingressClassName: nginx
  656. # configures the hostname e.g., jenkins-external.example.com
  657. hostName:
  658. tls:
  659. # - secretName: jenkins-external.example.com
  660. # hosts:
  661. # - jenkins-external.example.com
  662. # If you're running on GKE and need to configure a backendconfig
  663. # to finish ingress setup, use the following values.
  664. # Docs: https://cloud.google.com/kubernetes-engine/docs/concepts/backendconfig
  665. backendconfig:
  666. # -- Enables backendconfig
  667. enabled: false
  668. # -- backendconfig API version
  669. apiVersion: "extensions/v1beta1"
  670. # -- backendconfig name
  671. name:
  672. # -- backendconfig labels
  673. labels: {}
  674. # -- backendconfig annotations
  675. annotations: {}
  676. # -- backendconfig spec
  677. spec: {}
  678. # Openshift route
  679. route:
  680. # -- Enables openshift route
  681. enabled: false
  682. # -- Route labels
  683. labels: {}
  684. # -- Route annotations
  685. annotations: {}
  686. # -- Route path
  687. path:
  688. # -- Allows for adding entries to Pod /etc/hosts
  689. hostAliases: []
  690. # ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  691. # hostAliases:
  692. # - ip: 192.168.50.50
  693. # hostnames:
  694. # - something.local
  695. # - ip: 10.0.50.50
  696. # hostnames:
  697. # - other.local
  698. # Expose Prometheus metrics
  699. prometheus:
  700. # If enabled, add the prometheus plugin to the list of plugins to install
  701. # https://plugins.jenkins.io/prometheus
  702. # -- Enables prometheus service monitor
  703. enabled: false
  704. # -- Additional labels to add to the service monitor object
  705. serviceMonitorAdditionalLabels: {}
  706. # -- Set a custom namespace where to deploy ServiceMonitor resource
  707. serviceMonitorNamespace:
  708. # -- How often prometheus should scrape metrics
  709. scrapeInterval: 60s
  710. # Defaults to the default endpoint used by the prometheus plugin
  711. # -- The endpoint prometheus should get metrics from
  712. scrapeEndpoint: /prometheus
  713. # See here: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
  714. # The `groups` root object is added by default, add the rule entries
  715. # -- Array of prometheus alerting rules
  716. alertingrules: []
  717. # -- Additional labels to add to the PrometheusRule object
  718. alertingRulesAdditionalLabels: {}
  719. # -- Set a custom namespace where to deploy PrometheusRule resource
  720. prometheusRuleNamespace: ""
  721. # RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds
  722. # relabelings for a few standard Kubernetes fields. The original scrape job’s name
  723. # is available via the __tmp_prometheus_job_name label.
  724. # More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
  725. relabelings: []
  726. # MetricRelabelConfigs to apply to samples before ingestion.
  727. metricRelabelings: []
  728. googlePodMonitor:
  729. # If enabled, It creates Google Managed Prometheus scraping config
  730. enabled: false
  731. # Set a custom namespace where to deploy PodMonitoring resource
  732. # serviceMonitorNamespace: ""
  733. scrapeInterval: 60s
  734. # This is the default endpoint used by the prometheus plugin
  735. scrapeEndpoint: /prometheus
  736. # -- Can be used to disable rendering controller test resources when using helm template
  737. testEnabled: true
  738. httpsKeyStore:
  739. # -- Enables HTTPS keystore on jenkins controller
  740. enable: false
  741. # -- Name of the secret that already has SSL keystore
  742. jenkinsHttpsJksSecretName: ""
  743. # -- Name of the key in the secret that already has SSL keystore
  744. jenkinsHttpsJksSecretKey: "jenkins-jks-file"
  745. # -- Name of the secret that contains the JKS password, if it is not in the same secret as the JKS file
  746. jenkinsHttpsJksPasswordSecretName: ""
  747. # -- Name of the key in the secret that contains the JKS password
  748. jenkinsHttpsJksPasswordSecretKey: "https-jks-password"
  749. disableSecretMount: false
  750. # When HTTPS keystore is enabled, servicePort and targetPort will be used as HTTPS port
  751. # -- HTTP Port that Jenkins should listen to along with HTTPS, it also serves as the liveness and readiness probes port.
  752. httpPort: 8081
  753. # -- Path of HTTPS keystore file
  754. path: "/var/jenkins_keystore"
  755. # -- Jenkins keystore filename which will appear under controller.httpsKeyStore.path
  756. fileName: "keystore.jks"
  757. # -- Jenkins keystore password
  758. password: "password"
  759. # -- Base64 encoded Keystore content. Keystore must be converted to base64 then being pasted here
  760. jenkinsKeyStoreBase64Encoded:
  761. # Convert keystore.jks files content to base64 > $ cat keystore.jks | base64
  762. # /u3+7QAAAAIAAAABAAAAAQANamVua2luc2NpLmNvbQAAAW2r/b1ZAAAFATCCBP0wDgYKKwYBBAEq
  763. # AhEBAQUABIIE6QbCqasvoHS0pSwYqSvdydMCB9t+VNfwhFIiiuAelJfO5sSe2SebJbtwHgLcRz1Z
  764. # gMtWgOSFdl3bWSzA7vrW2LED52h+jXLYSWvZzuDuh8hYO85m10ikF6QR+dTi4jra0whIFDvq3pxe
  765. # TnESxEsN+DvbZM3jA3qsjQJSeISNpDjO099dqQvHpnCn18lyk7J4TWJ8sOQQb1EM2zDAfAOSqA/x
  766. # QuPEFl74DlY+5DIk6EBvpmWhaMSvXzWZACGA0sYqa157dq7O0AqmuLG/EI5EkHETO4CrtBW+yLcy
  767. # 2dUCXOMA+j+NjM1BjrQkYE5vtSfNO6lFZcISyKo5pTFlcA7ut0Fx2nZ8GhHTn32CpeWwNcZBn1gR
  768. # pZVt6DxVVkhTAkMLhR4rL2wGIi/1WRs23ZOLGKtyDNvDHnQyDiQEoJGy9nAthA8aNHa3cfdF10vB
  769. # Drb19vtpFHmpvKEEhpk2EBRF4fTi644Fuhu2Ied6118AlaPvEea+n6G4vBz+8RWuVCmZjLU+7h8l
  770. # Hy3/WdUPoIL5eW7Kz+hS+sRTFzfu9C48dMkQH3a6f3wSY+mufizNF9U298r98TnYy+PfDJK0bstG
  771. # Ph6yPWx8DGXKQBwrhWJWXI6JwZDeC5Ny+l8p1SypTmAjpIaSW3ge+KgcL6Wtt1R5hUV1ajVwVSUi
  772. # HF/FachKqPqyLJFZTGjNrxnmNYpt8P1d5JTvJfmfr55Su/P9n7kcyWp7zMcb2Q5nlXt4tWogOHLI
  773. # OzEWKCacbFfVHE+PpdrcvCVZMDzFogIq5EqGTOZe2poPpBVE+1y9mf5+TXBegy5HToLWvmfmJNTO
  774. # NCDuBjgLs2tdw2yMPm4YEr57PnMX5gGTC3f2ZihXCIJDCRCdQ9sVBOjIQbOCzxFXkVITo0BAZhCi
  775. # Yz61wt3Ud8e//zhXWCkCsSV+IZCxxPzhEFd+RFVjW0Nm9hsb2FgAhkXCjsGROgoleYgaZJWvQaAg
  776. # UyBzMmKDPKTllBHyE3Gy1ehBNGPgEBChf17/9M+j8pcm1OmlM434ctWQ4qW7RU56//yq1soFY0Te
  777. # fu2ei03a6m68fYuW6s7XEEK58QisJWRAvEbpwu/eyqfs7PsQ+zSgJHyk2rO95IxdMtEESb2GRuoi
  778. # Bs+AHNdYFTAi+GBWw9dvEgqQ0Mpv0//6bBE/Fb4d7b7f56uUNnnE7mFnjGmGQN+MvC62pfwfvJTT
  779. # EkT1iZ9kjM9FprTFWXT4UmO3XTvesGeE50sV9YPm71X4DCQwc4KE8vyuwj0s6oMNAUACW2ClU9QQ
  780. # y0tRpaF1tzs4N42Q5zl0TzWxbCCjAtC3u6xf+c8MCGrr7DzNhm42LOQiHTa4MwX4x96q7235oiAU
  781. # iQqSI/hyF5yLpWw4etyUvsx2/0/0wkuTU1FozbLoCWJEWcPS7QadMrRRISxHf0YobIeQyz34regl
  782. # t1qSQ3dCU9D6AHLgX6kqllx4X0fnFq7LtfN7fA2itW26v+kAT2QFZ3qZhINGfofCja/pITC1uNAZ
  783. # gsJaTMcQ600krj/ynoxnjT+n1gmeqThac6/Mi3YlVeRtaxI2InL82ZuD+w/dfY9OpPssQjy3xiQa
  784. # jPuaMWXRxz/sS9syOoGVH7XBwKrWpQcpchozWJt40QV5DslJkclcr8aC2AGlzuJMTdEgz1eqV0+H
  785. # bAXG9HRHN/0eJTn1/QAAAAEABVguNTA5AAADjzCCA4swggJzAhRGqVxH4HTLYPGO4rzHcCPeGDKn
  786. # xTANBgkqhkiG9w0BAQsFADCBgTELMAkGA1UEBhMCY2ExEDAOBgNVBAgMB29udGFyaW8xEDAOBgNV
  787. # BAcMB3Rvcm9udG8xFDASBgNVBAoMC2plbmtpbnN0ZXN0MRkwFwYDVQQDDBBqZW5raW5zdGVzdC5p
  788. # bmZvMR0wGwYJKoZIhvcNAQkBFg50ZXN0QHRlc3QuaW5mbzAeFw0xOTEwMDgxNTI5NTVaFw0xOTEx
  789. # MDcxNTI5NTVaMIGBMQswCQYDVQQGEwJjYTEQMA4GA1UECAwHb250YXJpbzEQMA4GA1UEBwwHdG9y
  790. # b250bzEUMBIGA1UECgwLamVua2luc3Rlc3QxGTAXBgNVBAMMEGplbmtpbnN0ZXN0LmluZm8xHTAb
  791. # BgkqhkiG9w0BCQEWDnRlc3RAdGVzdC5pbmZvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
  792. # AQEA02q352JTHGvROMBhSHvSv+vnoOTDKSTz2aLQn0tYrIRqRo+8bfmMjXuhkwZPSnCpvUGNAJ+w
  793. # Jrt/dqMoYUjCBkjylD/qHmnXN5EwS1cMg1Djh65gi5JJLFJ7eNcoSsr/0AJ+TweIal1jJSP3t3PF
  794. # 9Uv21gm6xdm7HnNK66WpUUXLDTKaIs/jtagVY1bLOo9oEVeLN4nT2CYWztpMvdCyEDUzgEdDbmrP
  795. # F5nKUPK5hrFqo1Dc5rUI4ZshL3Lpv398aMxv6n2adQvuL++URMEbXXBhxOrT6rCtYzbcR5fkwS9i
  796. # d3Br45CoWOQro02JAepoU0MQKY5+xQ4Bq9Q7tB9BAwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAe
  797. # 4xc+mSvKkrKBHg9/zpkWgZUiOp4ENJCi8H4tea/PCM439v6y/kfjT/okOokFvX8N5aa1OSz2Vsrl
  798. # m8kjIc6hiA7bKzT6lb0EyjUShFFZ5jmGVP4S7/hviDvgB5yEQxOPpumkdRP513YnEGj/o9Pazi5h
  799. # /MwpRxxazoda9r45kqQpyG+XoM4pB+Fd3JzMc4FUGxfVPxJU4jLawnJJiZ3vqiSyaB0YyUL+Er1Q
  800. # 6NnqtR4gEBF0ZVlQmkycFvD4EC2boP943dLqNUvop+4R3SM1QMM6P5u8iTXtHd/VN4MwMyy1wtog
  801. # hYAzODo1Jt59pcqqKJEas0C/lFJEB3frw4ImNx5fNlJYOpx+ijfQs9m39CevDq0=
  802. agent:
  803. # -- Enable Kubernetes plugin jnlp-agent podTemplate
  804. enabled: true
  805. # -- The name of the pod template to use for providing default values
  806. defaultsProviderTemplate: ""
  807. # Useful for not including a serviceAccount in the template if `false`
  808. # -- Use `serviceAccountAgent.name` as the default value for defaults template `serviceAccount`
  809. useDefaultServiceAccount: true
  810. # -- Override the default service account
  811. # @default -- `serviceAccountAgent.name` if `agent.useDefaultServiceAccount` is `true`
  812. serviceAccount:
  813. create: false
  814. name: jenkins
  815. annotations: {}
  816. # For connecting to the Jenkins controller
  817. # -- Overrides the Kubernetes Jenkins URL
  818. jenkinsUrl:
  819. # connects to the specified host and port, instead of connecting directly to the Jenkins controller
  820. # -- Overrides the Kubernetes Jenkins tunnel
  821. jenkinsTunnel:
  822. # -- Disables the verification of the controller certificate on remote connection. This flag correspond to the "Disable https certificate check" flag in kubernetes plugin UI
  823. skipTlsVerify: false
  824. # -- Enable the possibility to restrict the usage of this agent to specific folder. This flag correspond to the "Restrict pipeline support to authorized folders" flag in kubernetes plugin UI
  825. usageRestricted: false
  826. # -- The connection timeout in seconds for connections to Kubernetes API. The minimum value is 5
  827. kubernetesConnectTimeout: 5
  828. # -- The read timeout in seconds for connections to Kubernetes API. The minimum value is 15
  829. kubernetesReadTimeout: 15
  830. # -- The maximum concurrent connections to Kubernetes API
  831. maxRequestsPerHostStr: "32"
  832. # -- Time in minutes after which the Kubernetes cloud plugin will clean up an idle worker that has not already terminated
  833. retentionTimeout: 5
  834. # -- Seconds to wait for pod to be running
  835. waitForPodSec: 600
  836. # -- Namespace in which the Kubernetes agents should be launched
  837. namespace:
  838. # -- Custom Pod labels (an object with `label-key: label-value` pairs)
  839. podLabels: {}
  840. # -- Custom registry used to pull the agent jnlp image from
  841. jnlpregistry:
  842. image:
  843. # -- Registry to pull the agent jnlp image from
  844. registry: ""
  845. # -- Repository to pull the agent jnlp image from
  846. repository: "jenkins/inbound-agent"
  847. # -- Tag of the image to pull
  848. tag: "3341.v0766d82b_dec0-2"
  849. # -- Configure working directory for default agent
  850. workingDir: "/home/jenkins/agent"
  851. nodeUsageMode: "NORMAL"
  852. # -- Append Jenkins labels to the agent
  853. customJenkinsLabels: []
  854. # -- Name of the secret to be used to pull the image
  855. imagePullSecretName:
  856. componentName: "jenkins-agent"
  857. # -- Enables agent communication via websockets
  858. websocket: false
  859. directConnection: false
  860. # -- Agent privileged container
  861. privileged: false
  862. # -- Configure container user
  863. runAsUser:
  864. # -- Configure container group
  865. runAsGroup:
  866. # -- Enables the agent to use the host network
  867. hostNetworking: false
  868. # -- Resources allocation (Requests and Limits)
  869. resources:
  870. requests:
  871. cpu: "512m"
  872. memory: "512Mi"
  873. # ephemeralStorage:
  874. limits:
  875. cpu: "512m"
  876. memory: "512Mi"
  877. # ephemeralStorage:
  878. livenessProbe: {}
  879. # execArgs: "cat /tmp/healthy"
  880. # failureThreshold: 3
  881. # initialDelaySeconds: 0
  882. # periodSeconds: 10
  883. # successThreshold: 1
  884. # timeoutSeconds: 1
  885. # You may want to change this to true while testing a new image
  886. # -- Always pull agent container image before build
  887. alwaysPullImage: false
  888. # When using Pod Security Admission in the Agents namespace with the restricted Pod Security Standard,
  889. # the jnlp container cannot be scheduled without overriding its container definition with a securityContext.
  890. # This option allows to automatically inject in the jnlp container a securityContext
  891. # that is suitable for the use of the restricted Pod Security Standard.
  892. # -- Set a restricted securityContext on jnlp containers
  893. restrictedPssSecurityContext: false
  894. # Controls how agent pods are retained after the Jenkins build completes
  895. # Possible values: Always, Never, OnFailure
  896. podRetention: "Never"
  897. # Disable if you do not want the Yaml the agent pod template to show up
  898. # in the job Console Output. This can be helpful for either security reasons
  899. # or simply to clean up the output to make it easier to read.
  900. showRawYaml: true
  901. # You can define the volumes that you want to mount for this container
  902. # Allowed types are: ConfigMap, EmptyDir, EphemeralVolume, HostPath, Nfs, PVC, Secret
  903. # Configure the attributes as they appear in the corresponding Java class for that type
  904. # https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes
  905. # -- Additional volumes
  906. volumes: []
  907. # - type: ConfigMap
  908. # configMapName: myconfigmap
  909. # mountPath: /var/myapp/myconfigmap
  910. # - type: EmptyDir
  911. # mountPath: /var/myapp/myemptydir
  912. # memory: false
  913. # - type: EphemeralVolume
  914. # mountPath: /var/myapp/myephemeralvolume
  915. # accessModes: ReadWriteOnce
  916. # requestsSize: 10Gi
  917. # storageClassName: mystorageclass
  918. # - type: HostPath
  919. # hostPath: /var/lib/containers
  920. # mountPath: /var/myapp/myhostpath
  921. # - type: Nfs
  922. # mountPath: /var/myapp/mynfs
  923. # readOnly: false
  924. # serverAddress: "192.0.2.0"
  925. # serverPath: /var/lib/containers
  926. # - type: PVC
  927. # claimName: mypvc
  928. # mountPath: /var/myapp/mypvc
  929. # readOnly: false
  930. # - type: Secret
  931. # defaultMode: "600"
  932. # mountPath: /var/myapp/mysecret
  933. # secretName: mysecret
  934. # Pod-wide environment, these vars are visible to any container in the agent pod
  935. # You can define the workspaceVolume that you want to mount for this container
  936. # Allowed types are: DynamicPVC, EmptyDir, EphemeralVolume, HostPath, Nfs, PVC
  937. # Configure the attributes as they appear in the corresponding Java class for that type
  938. # https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/workspace
  939. # -- Workspace volume (defaults to EmptyDir)
  940. workspaceVolume: {}
  941. ## DynamicPVC example
  942. # - type: DynamicPVC
  943. # configMapName: myconfigmap
  944. ## EmptyDir example
  945. # - type: EmptyDir
  946. # memory: false
  947. ## EphemeralVolume example
  948. # - type: EphemeralVolume
  949. # accessModes: ReadWriteOnce
  950. # requestsSize: 10Gi
  951. # storageClassName: mystorageclass
  952. ## HostPath example
  953. # - type: HostPath
  954. # hostPath: /var/lib/containers
  955. ## NFS example
  956. # - type: Nfs
  957. # readOnly: false
  958. # serverAddress: "192.0.2.0"
  959. # serverPath: /var/lib/containers
  960. ## PVC example
  961. # - type: PVC
  962. # claimName: mypvc
  963. # readOnly: false
  964. # Pod-wide environment, these vars are visible to any container in the agent pod
  965. # -- Environment variables for the agent Pod
  966. envVars: []
  967. # - name: PATH
  968. # value: /usr/local/bin
  969. # -- Mount a secret as environment variable
  970. secretEnvVars: []
  971. # - key: PATH
  972. # optional: false # default: false
  973. # secretKey: MY-K8S-PATH
  974. # secretName: my-k8s-secret
  975. # -- Node labels for pod assignment
  976. nodeSelector: {}
  977. # Key Value selectors. Ex:
  978. # nodeSelector
  979. # jenkins-agent: v1
  980. # -- Command to execute when side container starts
  981. command:
  982. # -- Arguments passed to command to execute
  983. args: "${computer.jnlpmac} ${computer.name}"
  984. # -- Side container name
  985. sideContainerName: "jnlp"
  986. # Doesn't allocate pseudo TTY by default
  987. # -- Allocate pseudo tty to the side container
  988. TTYEnabled: false
  989. # -- Max number of agents to launch for a whole cluster.
  990. containerCap: 10
  991. # -- Max number of agents to launch for this type of agent
  992. instanceCap: 2147483647
  993. # -- Agent Pod base name
  994. podName: "default"
  995. # Enables garbage collection of orphan pods for this Kubernetes cloud. (beta)
  996. garbageCollection:
  997. # -- When enabled, Jenkins will periodically check for orphan pods that have not been touched for the given timeout period and delete them.
  998. enabled: false
  999. # -- Namespaces to look at for garbage collection, in addition to the default namespace defined for the cloud. One namespace per line.
  1000. namespaces: ""
  1001. # namespaces: |-
  1002. # namespaceOne
  1003. # namespaceTwo
  1004. # -- Timeout value for orphaned pods
  1005. timeout: 300
  1006. # -- Allows the Pod to remain active for reuse until the configured number of minutes has passed since the last step was executed on it
  1007. idleMinutes: 0
  1008. # The raw yaml of a Pod API Object, for example, this allows usage of toleration for agent pods.
  1009. # https://github.com/jenkinsci/kubernetes-plugin#using-yaml-to-define-pod-templates
  1010. # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  1011. # -- The raw yaml of a Pod API Object to merge into the agent spec
  1012. yamlTemplate: ""
  1013. # yamlTemplate: |-
  1014. # apiVersion: v1
  1015. # kind: Pod
  1016. # spec:
  1017. # tolerations:
  1018. # - key: "key"
  1019. # operator: "Equal"
  1020. # value: "value"
  1021. # -- Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates. Possible values: "merge" or "override"
  1022. yamlMergeStrategy: "override"
  1023. # -- Controls whether the defined yaml merge strategy will be inherited if another defined pod template is configured to inherit from the current one
  1024. inheritYamlMergeStrategy: false
  1025. # -- Timeout in seconds for an agent to be online
  1026. connectTimeout: 100
  1027. # -- Annotations to apply to the pod
  1028. annotations: {}
  1029. # Containers specified here are added to all agents. Set key empty to remove container from additional agents.
  1030. # -- Add additional containers to the agents
  1031. additionalContainers: []
  1032. # - sideContainerName: dind
  1033. # image:
  1034. # repository: docker
  1035. # tag: dind
  1036. # command: dockerd-entrypoint.sh
  1037. # args: ""
  1038. # privileged: true
  1039. # resources:
  1040. # requests:
  1041. # cpu: 500m
  1042. # memory: 1Gi
  1043. # limits:
  1044. # cpu: 1
  1045. # memory: 2Gi
  1046. # Useful when configuring agents only with the podTemplates value, since the default podTemplate populated by values mentioned above will be excluded in the rendered template.
  1047. # -- Disable the default Jenkins Agent configuration
  1048. disableDefaultAgent: false
  1049. # Below is the implementation of custom pod templates for the default configured kubernetes cloud.
  1050. # Add a key under podTemplates for each pod template. Each key (prior to | character) is just a label, and can be any value.
  1051. # Keys are only used to give the pod template a meaningful name. The only restriction is they may only contain RFC 1123 \ DNS label
  1052. # characters: lowercase letters, numbers, and hyphens. Each pod template can contain multiple containers.
  1053. # For this pod templates configuration to be loaded, the following values must be set:
  1054. # controller.JCasC.defaultConfig: true
  1055. # Best reference is https://<jenkins_url>/configuration-as-code/reference#Cloud-kubernetes. The example below creates a python pod template.
  1056. # -- Configures extra pod templates for the default kubernetes cloud
  1057. podTemplates: {}
  1058. # python: |
  1059. # - name: python
  1060. # label: jenkins-python
  1061. # serviceAccount: jenkins
  1062. # containers:
  1063. # - name: python
  1064. # image: python:3
  1065. # command: "/bin/sh -c"
  1066. # args: "cat"
  1067. # ttyEnabled: true
  1068. # privileged: true
  1069. # resourceRequestCpu: "400m"
  1070. # resourceRequestMemory: "512Mi"
  1071. # resourceLimitCpu: "1"
  1072. # resourceLimitMemory: "1024Mi"
  1073. # Inherits all values from `agent` so you only need to specify values which differ
  1074. # -- Configure additional
  1075. additionalAgents: {}
  1076. # maven:
  1077. # podName: maven
  1078. # customJenkinsLabels: maven
  1079. # # An example of overriding the jnlp container
  1080. # # sideContainerName: jnlp
  1081. # image:
  1082. # repository: jenkins/jnlp-agent-maven
  1083. # tag: latest
  1084. # python:
  1085. # podName: python
  1086. # customJenkinsLabels: python
  1087. # sideContainerName: python
  1088. # image:
  1089. # repository: python
  1090. # tag: "3"
  1091. # command: "/bin/sh -c"
  1092. # args: "cat"
  1093. # TTYEnabled: true
  1094. # Here you can add additional clouds
  1095. # They inherit all values from the default cloud (including the main agent), so
  1096. # you only need to specify values which differ. If you want to override
  1097. # default additionalAgents with the additionalClouds.additionalAgents set
  1098. # additionalAgentsOverride to `true`.
  1099. additionalClouds: {}
  1100. # remote-cloud-1:
  1101. # kubernetesURL: https://api.remote-cloud.com
  1102. # additionalAgentsOverride: true
  1103. # additionalAgents:
  1104. # maven-2:
  1105. # podName: maven-2
  1106. # customJenkinsLabels: maven
  1107. # # An example of overriding the jnlp container
  1108. # # sideContainerName: jnlp
  1109. # image:
  1110. # repository: jenkins/jnlp-agent-maven
  1111. # tag: latest
  1112. # namespace: my-other-maven-namespace
  1113. # remote-cloud-2:
  1114. # kubernetesURL: https://api.remote-cloud.com
  1115. persistence:
  1116. # -- Enable the use of a Jenkins PVC
  1117. enabled: true
  1118. # A manually managed Persistent Volume and Claim
  1119. # Requires persistence.enabled: true
  1120. # If defined, PVC must be created manually before volume will be bound
  1121. # -- Provide the name of a PVC
  1122. existingClaim:
  1123. # jenkins data Persistent Volume Storage Class
  1124. # If defined, storageClassName: <storageClass>
  1125. # If set to "-", storageClassName: "", which disables dynamic provisioning
  1126. # If undefined (the default) or set to null, no storageClassName spec is
  1127. # set, choosing the default provisioner (gp2 on AWS, standard on GKE, AWS & OpenStack)
  1128. # -- Storage class for the PVC
  1129. storageClass:
  1130. # -- Annotations for the PVC
  1131. annotations: {}
  1132. # -- Labels for the PVC
  1133. labels: {}
  1134. # -- The PVC access mode
  1135. accessMode: "ReadWriteOnce"
  1136. # -- The size of the PVC
  1137. size: "8Gi"
  1138. # ref: https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/
  1139. # -- Existing data source to clone PVC from
  1140. dataSource: {}
  1141. # name: PVC-NAME
  1142. # kind: PersistentVolumeClaim
  1143. # -- SubPath for jenkins-home mount
  1144. subPath:
  1145. # -- Additional volumes
  1146. volumes: []
  1147. # - name: nothing
  1148. # emptyDir: {}
  1149. # -- Additional mounts
  1150. mounts: []
  1151. # - mountPath: /var/nothing
  1152. # name: nothing
  1153. # readOnly: true
  1154. networkPolicy:
  1155. # -- Enable the creation of NetworkPolicy resources
  1156. enabled: false
  1157. # For Kubernetes v1.4, v1.5 and v1.6, use 'extensions/v1beta1'
  1158. # For Kubernetes v1.7, use 'networking.k8s.io/v1'
  1159. # -- NetworkPolicy ApiVersion
  1160. apiVersion: networking.k8s.io/v1
  1161. # You can allow agents to connect from both within the cluster (from within specific/all namespaces) AND/OR from a given external IP range
  1162. internalAgents:
  1163. # -- Allow internal agents (from the same cluster) to connect to controller. Agent pods will be filtered based on PodLabels
  1164. allowed: true
  1165. # -- A map of labels (keys/values) that agent pods must have to be able to connect to controller
  1166. podLabels: {}
  1167. # -- A map of labels (keys/values) that agents namespaces must have to be able to connect to controller
  1168. namespaceLabels:
  1169. {}
  1170. # project: myproject
  1171. externalAgents:
  1172. # -- The IP range from which external agents are allowed to connect to controller, i.e., 172.17.0.0/16
  1173. ipCIDR:
  1174. # -- A list of IP sub-ranges to be excluded from the allowlisted IP range
  1175. except:
  1176. []
  1177. # - 172.17.1.0/24
  1178. ## Install Default RBAC roles and bindings
  1179. rbac:
  1180. # -- Whether RBAC resources are created
  1181. create: true
  1182. # -- Whether the Jenkins service account should be able to read Kubernetes secrets
  1183. readSecrets: false
  1184. # -- Whether the Jenkins service account should be able to use the OpenShift "nonroot" Security Context Constraints
  1185. useOpenShiftNonRootSCC: false
  1186. serviceAccount:
  1187. # -- Configures if a ServiceAccount with this name should be created
  1188. create: true
  1189. # The name of the ServiceAccount is autogenerated by default
  1190. # -- The name of the ServiceAccount to be used by access-controlled resources
  1191. name:
  1192. # -- Configures annotations for the ServiceAccount
  1193. annotations: {}
  1194. # -- Configures extra labels for the ServiceAccount
  1195. extraLabels: {}
  1196. # -- Controller ServiceAccount image pull secret
  1197. imagePullSecretName:
  1198. # -- Auto-mount ServiceAccount token
  1199. automountServiceAccountToken: true
  1200. serviceAccountAgent:
  1201. # -- Configures if an agent ServiceAccount should be created
  1202. create: false
  1203. # If not set and create is true, a name is generated using the fullname template
  1204. # -- The name of the agent ServiceAccount to be used by access-controlled resources
  1205. name:
  1206. # -- Configures annotations for the agent ServiceAccount
  1207. annotations: {}
  1208. # -- Configures extra labels for the agent ServiceAccount
  1209. extraLabels: {}
  1210. # -- Agent ServiceAccount image pull secret
  1211. imagePullSecretName:
  1212. # -- Auto-mount ServiceAccount token
  1213. automountServiceAccountToken: true
  1214. # -- Checks if any deprecated values are used
  1215. checkDeprecation: true
  1216. awsSecurityGroupPolicies:
  1217. enabled: false
  1218. policies:
  1219. - name: ""
  1220. securityGroupIds: []
  1221. podSelector: {}
  1222. # Here you can configure unit tests values when executing the helm unittest in the CONTRIBUTING.md
  1223. helmtest:
  1224. # A testing framework for bash
  1225. bats:
  1226. # Bash Automated Testing System (BATS)
  1227. image:
  1228. # -- Registry of the image used to test the framework
  1229. registry: "docker.io"
  1230. # -- Repository of the image used to test the framework
  1231. repository: "bats/bats"
  1232. # -- Tag of the image to test the framework
  1233. tag: "1.12.0"