jenkins.yaml 56 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388
  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: "Rey-1176"
  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:4358.vcfd9c5a_0a_f51
  345. - workflow-aggregator:608.v67378e9d3db_1
  346. - git:5.7.0
  347. - configuration-as-code:1985.vdda_32d0c4ea_b_
  348. - blueocean:1.27.21
  349. - ansicolor:1.0.6
  350. # If set to false, Jenkins will download the minimum required version of all dependencies.
  351. # -- Download the minimum required version or latest version of all dependencies
  352. installLatestPlugins: true
  353. # -- Set to true to download the latest version of any plugin that is requested to have the latest version
  354. installLatestSpecifiedPlugins: true
  355. # -- List of plugins to install in addition to those listed in controller.installPlugins
  356. additionalPlugins: []
  357. # Without this; whenever the controller gets restarted (Evicted, etc.) it will fetch plugin updates that have the potential to cause breakage.
  358. # Note that for this to work, `persistence.enabled` needs to be set to `true`
  359. # -- Initialize only on first installation. Ensures plugins do not get updated inadvertently. Requires `persistence.enabled` to be set to `true`
  360. initializeOnce: false
  361. # Enable to always override the installed plugins with the values of 'controller.installPlugins' on upgrade or redeployment.
  362. # -- Overwrite installed plugins on start
  363. overwritePlugins: false
  364. # Configures if plugins bundled with `controller.image` should be overwritten with the values of 'controller.installPlugins' on upgrade or redeployment.
  365. # -- Overwrite plugins that are already installed in the controller image
  366. overwritePluginsFromImage: true
  367. # Configures the restrictions for naming projects. Set this key to null or empty to skip it in the default config.
  368. projectNamingStrategy: standard
  369. # Useful with ghprb plugin. The OWASP plugin is not installed by default, please update controller.installPlugins.
  370. # -- Enable HTML parsing using OWASP Markup Formatter Plugin (antisamy-markup-formatter)
  371. enableRawHtmlMarkupFormatter: false
  372. # This is ignored if enableRawHtmlMarkupFormatter is true
  373. # -- Yaml of the markup formatter to use
  374. markupFormatter: plainText
  375. # Used to approve a list of groovy functions in pipelines used the script-security plugin. Can be viewed under /scriptApproval
  376. # -- List of groovy functions to approve
  377. scriptApproval: []
  378. # - "method groovy.json.JsonSlurperClassic parseText java.lang.String"
  379. # - "new groovy.json.JsonSlurperClassic"
  380. # -- Map of groovy init scripts to be executed during Jenkins controller start
  381. initScripts: {}
  382. # test: |-
  383. # print 'adding global pipeline libraries, register properties, bootstrap jobs...'
  384. # -- Name of the existing ConfigMap that contains init scripts
  385. initConfigMap:
  386. # 'name' is a name of an existing secret in the same namespace as jenkins,
  387. # 'keyName' is the name of one of the keys inside the current secret.
  388. # the 'name' and 'keyName' are concatenated with a '-' in between, so for example:
  389. # an existing secret "secret-credentials" and a key inside it named "github-password" should be used in JCasC as ${secret-credentials-github-password}
  390. # 'name' and 'keyName' must be lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-',
  391. # and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc')
  392. # existingSecret existing secret "secret-credentials" and a key inside it named "github-username" should be used in JCasC as ${github-username}
  393. # When using existingSecret no need to specify the keyName under additionalExistingSecrets.
  394. existingSecret:
  395. # -- List of additional existing secrets to mount
  396. additionalExistingSecrets: []
  397. # ref: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/features/secrets.adoc#kubernetes-secrets
  398. # additionalExistingSecrets:
  399. # - name: secret-name-1
  400. # keyName: username
  401. # - name: secret-name-1
  402. # keyName: password
  403. # -- List of additional secrets to create and mount
  404. additionalSecrets: []
  405. # ref: https://github.com/jenkinsci/configuration-as-code-plugin/blob/master/docs/features/secrets.adoc#kubernetes-secrets
  406. # additionalSecrets:
  407. # - name: nameOfSecret
  408. # value: secretText
  409. # Generate SecretClaim resources to create Kubernetes secrets from HashiCorp Vault using kube-vault-controller.
  410. # 'name' is the name of the secret that will be created in Kubernetes. The Jenkins fullname is prepended to this value.
  411. # 'path' is the fully qualified path to the secret in Vault
  412. # 'type' is an optional Kubernetes secret type. The default is 'Opaque'
  413. # 'renew' is an optional secret renewal time in seconds
  414. # -- List of `SecretClaim` resources to create
  415. secretClaims: []
  416. # - name: secretName # required
  417. # path: testPath # required
  418. # type: kubernetes.io/tls # optional
  419. # renew: 60 # optional
  420. # -- Name of default cloud configuration.
  421. cloudName: "kubernetes"
  422. # Below is the implementation of Jenkins Configuration as Code. Add a key under configScripts for each configuration area,
  423. # 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.
  424. # Keys are only used to give the section a meaningful name. The only restriction is they may only contain RFC 1123 \ DNS label
  425. # characters: lowercase letters, numbers, and hyphens. The keys become the name of a configuration yaml file on the controller in
  426. # /var/jenkins_home/casc_configs (by default) and will be processed by the Configuration as Code Plugin. The lines after each |
  427. # become the content of the configuration yaml file. The first line after this is a JCasC root element, e.g., jenkins, credentials,
  428. # etc. Best reference is https://<jenkins_url>/configuration-as-code/reference. The example below creates a welcome message:
  429. JCasC:
  430. # -- Enables default Jenkins configuration via configuration as code plugin
  431. defaultConfig: true
  432. # If true, the init container deletes all the plugin config files and Jenkins Config as Code overwrites any existing configuration
  433. # -- Whether Jenkins Config as Code should overwrite any existing configuration
  434. overwriteConfiguration: false
  435. # -- Remote URLs for configuration files.
  436. configUrls: []
  437. # - https://acme.org/jenkins.yaml
  438. # -- List of Jenkins Config as Code scripts
  439. configScripts: {}
  440. # welcome-message: |
  441. # jenkins:
  442. # systemMessage: Welcome to our CI\CD server. This Jenkins is configured and managed 'as code'.
  443. # Allows adding to the top-level security JCasC section. For legacy purposes, by default, the chart includes apiToken configurations
  444. # -- Jenkins Config as Code security-section
  445. security:
  446. apiToken:
  447. creationOfLegacyTokenEnabled: false
  448. tokenGenerationOnCreationEnabled: false
  449. usageStatisticsEnabled: true
  450. # Ignored if securityRealm is defined in controller.JCasC.configScripts
  451. # -- Jenkins Config as Code Security Realm-section
  452. securityRealm: |-
  453. local:
  454. allowsSignup: false
  455. enableCaptcha: false
  456. users:
  457. - id: "${chart-admin-username}"
  458. name: "Jenkins Admin"
  459. password: "${chart-admin-password}"
  460. # Ignored if authorizationStrategy is defined in controller.JCasC.configScripts
  461. # -- Jenkins Config as Code Authorization Strategy-section
  462. authorizationStrategy: |-
  463. loggedInUsersCanDoAnything:
  464. allowAnonymousRead: false
  465. # -- Annotations for the JCasC ConfigMap
  466. configMapAnnotations: {}
  467. # -- Custom init-container specification in raw-yaml format
  468. customInitContainers: []
  469. # - name: custom-init
  470. # image: "alpine:3"
  471. # imagePullPolicy: Always
  472. # command: [ "uname", "-a" ]
  473. sidecars:
  474. configAutoReload:
  475. # If enabled: true, Jenkins Configuration as Code will be reloaded on-the-fly without a reboot.
  476. # If false or not-specified, JCasC changes will cause a reboot and will only be applied at the subsequent start-up.
  477. # Auto-reload uses the http://<jenkins_url>/reload-configuration-as-code endpoint to reapply config when changes to
  478. # the configScripts are detected.
  479. # -- Enable Jenkins Config as Code auto-reload
  480. enabled: true
  481. image:
  482. # -- Registry for the image that triggers the reload
  483. registry: docker.io
  484. # -- Repository of the image that triggers the reload
  485. repository: kiwigrid/k8s-sidecar
  486. # -- Tag for the image that triggers the reload
  487. tag: 1.30.7
  488. imagePullPolicy: IfNotPresent
  489. resources:
  490. {}
  491. # limits:
  492. # cpu: 100m
  493. # memory: 100Mi
  494. # requests:
  495. # cpu: 50m
  496. # memory: 50Mi
  497. # -- Enables additional volume mounts for the config auto-reload container
  498. additionalVolumeMounts:
  499. []
  500. # - name: auto-reload-config
  501. # mountPath: /var/config/logger
  502. # - name: auto-reload-logs
  503. # mountPath: /var/log/auto_reload
  504. # -- Config auto-reload logging settings
  505. logging:
  506. # See default settings https://github.com/kiwigrid/k8s-sidecar/blob/master/src/logger.py
  507. configuration:
  508. # -- Enables custom log config utilizing using the settings below.
  509. override: false
  510. logLevel: INFO
  511. formatter: JSON
  512. logToConsole: true
  513. logToFile: false
  514. maxBytes: 1024
  515. backupCount: 3
  516. # -- The scheme to use when connecting to the Jenkins configuration as code endpoint
  517. scheme: http
  518. # -- Skip TLS verification when connecting to the Jenkins configuration as code endpoint
  519. skipTlsVerify: false
  520. # -- How many connection-related errors to retry on
  521. reqRetryConnect: 10
  522. # -- How many seconds to wait before updating config-maps/secrets (sets METHOD=SLEEP on the sidecar)
  523. sleepTime:
  524. # -- Environment variable sources for the Jenkins Config as Code auto-reload container
  525. envFrom: []
  526. # -- Environment variables for the Jenkins Config as Code auto-reload container
  527. env: []
  528. # - name: REQ_TIMEOUT
  529. # value: "30"
  530. # 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.
  531. # This is only used to reload JCasC config from the sidecar container running in the Jenkins controller pod.
  532. # This TCP port will not be open in the pod (unless you specifically configure this), so Jenkins will not be
  533. # accessible via SSH from outside the pod. Note if you use non-root pod privileges (runAsUser & fsGroup),
  534. # this must be > 1024:
  535. sshTcpPort: 1044
  536. # folder in the pod that should hold the collected dashboards:
  537. folder: "/var/jenkins_home/casc_configs"
  538. # If specified, the sidecar will search for JCasC config-maps inside this namespace.
  539. # Otherwise, the namespace in which the sidecar is running will be used.
  540. # It's also possible to specify ALL to search in all namespaces:
  541. # searchNamespace:
  542. # -- Enable container security context
  543. containerSecurityContext:
  544. readOnlyRootFilesystem: true
  545. allowPrivilegeEscalation: false
  546. # -- Configures additional sidecar container(s) for the Jenkins controller
  547. additionalSidecarContainers: []
  548. ## The example below runs the client for https://smee.io as sidecar container next to Jenkins,
  549. ## that allows triggering build behind a secure firewall.
  550. ## https://jenkins.io/blog/2019/01/07/webhook-firewalls/#triggering-builds-with-webhooks-behind-a-secure-firewall
  551. ##
  552. ## Note: To use it you should go to https://smee.io/new and update the url to the generated one.
  553. # - name: smee
  554. # image: docker.io/twalter/smee-client:1.0.2
  555. # args: ["--port", "{{ .Values.controller.servicePort }}", "--path", "/github-webhook/", "--url", "https://smee.io/new"]
  556. # resources:
  557. # limits:
  558. # cpu: 50m
  559. # memory: 128Mi
  560. # requests:
  561. # cpu: 10m
  562. # memory: 32Mi
  563. # -- Name of the Kubernetes scheduler to use
  564. schedulerName: ""
  565. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
  566. # -- Node labels for pod assignment
  567. nodeSelector: {}
  568. # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#taints-and-tolerations-beta-feature
  569. # -- Toleration labels for pod assignment
  570. tolerations: []
  571. # -- Set TerminationGracePeriodSeconds
  572. terminationGracePeriodSeconds:
  573. # -- Set the termination message path
  574. terminationMessagePath:
  575. # -- Set the termination message policy
  576. terminationMessagePolicy:
  577. # -- Affinity settings
  578. affinity: {}
  579. # Leverage a priorityClass to ensure your pods survive resource shortages
  580. # ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
  581. # -- The name of a `priorityClass` to apply to the controller pod
  582. priorityClassName:
  583. # -- Annotations for controller pod
  584. podAnnotations: {}
  585. # -- Annotations for controller StatefulSet
  586. statefulSetAnnotations: {}
  587. # ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
  588. # -- Update strategy for StatefulSet
  589. updateStrategy: {}
  590. # -- Topology spread constraints
  591. topologySpreadConstraints: {}
  592. ingress:
  593. # -- Enables ingress
  594. enabled: false
  595. # Override for the default paths that map requests to the backend
  596. # -- Override for the default Ingress paths
  597. paths: []
  598. # - backend:
  599. # serviceName: ssl-redirect
  600. # servicePort: use-annotation
  601. # - backend:
  602. # serviceName: >-
  603. # {{ template "jenkins.fullname" . }}
  604. # # Don't use string here, use only integer value!
  605. # servicePort: 8080
  606. # For Kubernetes v1.14+, use 'networking.k8s.io/v1beta1'
  607. # For Kubernetes v1.19+, use 'networking.k8s.io/v1'
  608. # -- Ingress API version
  609. apiVersion: "extensions/v1beta1"
  610. # -- Ingress labels
  611. labels: {}
  612. # -- Ingress annotations
  613. annotations:
  614. {}
  615. # kubernetes.io/ingress.class: nginx
  616. # kubernetes.io/tls-acme: "true"
  617. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  618. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  619. # ingressClassName: nginx
  620. # Set this path to jenkinsUriPrefix above or use annotations to rewrite path
  621. # -- Ingress path
  622. path:
  623. # configures the hostname e.g. jenkins.example.com
  624. # -- Ingress hostname
  625. hostName:
  626. # -- Hostname to serve assets from
  627. resourceRootUrl:
  628. # -- Ingress TLS configuration
  629. tls: []
  630. # - secretName: jenkins.cluster.local
  631. # hosts:
  632. # - jenkins.cluster.local
  633. # often you want to have your controller all locked down and private,
  634. # but you still want to get webhooks from your SCM
  635. # A secondary ingress will let you expose different urls
  636. # with a different configuration
  637. secondaryingress:
  638. enabled: false
  639. # paths you want forwarded to the backend
  640. # ex /github-webhook
  641. paths: []
  642. # For Kubernetes v1.14+, use 'networking.k8s.io/v1beta1'
  643. # For Kubernetes v1.19+, use 'networking.k8s.io/v1'
  644. apiVersion: "extensions/v1beta1"
  645. labels: {}
  646. annotations: {}
  647. # kubernetes.io/ingress.class: nginx
  648. # kubernetes.io/tls-acme: "true"
  649. # For Kubernetes >= 1.18 you should specify the ingress-controller via the field ingressClassName
  650. # See https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#specifying-the-class-of-an-ingress
  651. # ingressClassName: nginx
  652. # configures the hostname e.g., jenkins-external.example.com
  653. hostName:
  654. tls:
  655. # - secretName: jenkins-external.example.com
  656. # hosts:
  657. # - jenkins-external.example.com
  658. # If you're running on GKE and need to configure a backendconfig
  659. # to finish ingress setup, use the following values.
  660. # Docs: https://cloud.google.com/kubernetes-engine/docs/concepts/backendconfig
  661. backendconfig:
  662. # -- Enables backendconfig
  663. enabled: false
  664. # -- backendconfig API version
  665. apiVersion: "extensions/v1beta1"
  666. # -- backendconfig name
  667. name:
  668. # -- backendconfig labels
  669. labels: {}
  670. # -- backendconfig annotations
  671. annotations: {}
  672. # -- backendconfig spec
  673. spec: {}
  674. # Openshift route
  675. route:
  676. # -- Enables openshift route
  677. enabled: false
  678. # -- Route labels
  679. labels: {}
  680. # -- Route annotations
  681. annotations: {}
  682. # -- Route path
  683. path:
  684. # -- Allows for adding entries to Pod /etc/hosts
  685. hostAliases: []
  686. # ref: https://kubernetes.io/docs/concepts/services-networking/add-entries-to-pod-etc-hosts-with-host-aliases/
  687. # hostAliases:
  688. # - ip: 192.168.50.50
  689. # hostnames:
  690. # - something.local
  691. # - ip: 10.0.50.50
  692. # hostnames:
  693. # - other.local
  694. # Expose Prometheus metrics
  695. prometheus:
  696. # If enabled, add the prometheus plugin to the list of plugins to install
  697. # https://plugins.jenkins.io/prometheus
  698. # -- Enables prometheus service monitor
  699. enabled: false
  700. # -- Additional labels to add to the service monitor object
  701. serviceMonitorAdditionalLabels: {}
  702. # -- Set a custom namespace where to deploy ServiceMonitor resource
  703. serviceMonitorNamespace:
  704. # -- How often prometheus should scrape metrics
  705. scrapeInterval: 60s
  706. # Defaults to the default endpoint used by the prometheus plugin
  707. # -- The endpoint prometheus should get metrics from
  708. scrapeEndpoint: /prometheus
  709. # See here: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
  710. # The `groups` root object is added by default, add the rule entries
  711. # -- Array of prometheus alerting rules
  712. alertingrules: []
  713. # -- Additional labels to add to the PrometheusRule object
  714. alertingRulesAdditionalLabels: {}
  715. # -- Set a custom namespace where to deploy PrometheusRule resource
  716. prometheusRuleNamespace: ""
  717. # RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds
  718. # relabelings for a few standard Kubernetes fields. The original scrape job’s name
  719. # is available via the __tmp_prometheus_job_name label.
  720. # More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
  721. relabelings: []
  722. # MetricRelabelConfigs to apply to samples before ingestion.
  723. metricRelabelings: []
  724. googlePodMonitor:
  725. # If enabled, It creates Google Managed Prometheus scraping config
  726. enabled: false
  727. # Set a custom namespace where to deploy PodMonitoring resource
  728. # serviceMonitorNamespace: ""
  729. scrapeInterval: 60s
  730. # This is the default endpoint used by the prometheus plugin
  731. scrapeEndpoint: /prometheus
  732. # -- Can be used to disable rendering controller test resources when using helm template
  733. testEnabled: true
  734. httpsKeyStore:
  735. # -- Enables HTTPS keystore on jenkins controller
  736. enable: false
  737. # -- Name of the secret that already has SSL keystore
  738. jenkinsHttpsJksSecretName: ""
  739. # -- Name of the key in the secret that already has SSL keystore
  740. jenkinsHttpsJksSecretKey: "jenkins-jks-file"
  741. # -- Name of the secret that contains the JKS password, if it is not in the same secret as the JKS file
  742. jenkinsHttpsJksPasswordSecretName: ""
  743. # -- Name of the key in the secret that contains the JKS password
  744. jenkinsHttpsJksPasswordSecretKey: "https-jks-password"
  745. disableSecretMount: false
  746. # When HTTPS keystore is enabled, servicePort and targetPort will be used as HTTPS port
  747. # -- HTTP Port that Jenkins should listen to along with HTTPS, it also serves as the liveness and readiness probes port.
  748. httpPort: 8081
  749. # -- Path of HTTPS keystore file
  750. path: "/var/jenkins_keystore"
  751. # -- Jenkins keystore filename which will appear under controller.httpsKeyStore.path
  752. fileName: "keystore.jks"
  753. # -- Jenkins keystore password
  754. password: "password"
  755. # -- Base64 encoded Keystore content. Keystore must be converted to base64 then being pasted here
  756. jenkinsKeyStoreBase64Encoded:
  757. # Convert keystore.jks files content to base64 > $ cat keystore.jks | base64
  758. # /u3+7QAAAAIAAAABAAAAAQANamVua2luc2NpLmNvbQAAAW2r/b1ZAAAFATCCBP0wDgYKKwYBBAEq
  759. # AhEBAQUABIIE6QbCqasvoHS0pSwYqSvdydMCB9t+VNfwhFIiiuAelJfO5sSe2SebJbtwHgLcRz1Z
  760. # gMtWgOSFdl3bWSzA7vrW2LED52h+jXLYSWvZzuDuh8hYO85m10ikF6QR+dTi4jra0whIFDvq3pxe
  761. # TnESxEsN+DvbZM3jA3qsjQJSeISNpDjO099dqQvHpnCn18lyk7J4TWJ8sOQQb1EM2zDAfAOSqA/x
  762. # QuPEFl74DlY+5DIk6EBvpmWhaMSvXzWZACGA0sYqa157dq7O0AqmuLG/EI5EkHETO4CrtBW+yLcy
  763. # 2dUCXOMA+j+NjM1BjrQkYE5vtSfNO6lFZcISyKo5pTFlcA7ut0Fx2nZ8GhHTn32CpeWwNcZBn1gR
  764. # pZVt6DxVVkhTAkMLhR4rL2wGIi/1WRs23ZOLGKtyDNvDHnQyDiQEoJGy9nAthA8aNHa3cfdF10vB
  765. # Drb19vtpFHmpvKEEhpk2EBRF4fTi644Fuhu2Ied6118AlaPvEea+n6G4vBz+8RWuVCmZjLU+7h8l
  766. # Hy3/WdUPoIL5eW7Kz+hS+sRTFzfu9C48dMkQH3a6f3wSY+mufizNF9U298r98TnYy+PfDJK0bstG
  767. # Ph6yPWx8DGXKQBwrhWJWXI6JwZDeC5Ny+l8p1SypTmAjpIaSW3ge+KgcL6Wtt1R5hUV1ajVwVSUi
  768. # HF/FachKqPqyLJFZTGjNrxnmNYpt8P1d5JTvJfmfr55Su/P9n7kcyWp7zMcb2Q5nlXt4tWogOHLI
  769. # OzEWKCacbFfVHE+PpdrcvCVZMDzFogIq5EqGTOZe2poPpBVE+1y9mf5+TXBegy5HToLWvmfmJNTO
  770. # NCDuBjgLs2tdw2yMPm4YEr57PnMX5gGTC3f2ZihXCIJDCRCdQ9sVBOjIQbOCzxFXkVITo0BAZhCi
  771. # Yz61wt3Ud8e//zhXWCkCsSV+IZCxxPzhEFd+RFVjW0Nm9hsb2FgAhkXCjsGROgoleYgaZJWvQaAg
  772. # UyBzMmKDPKTllBHyE3Gy1ehBNGPgEBChf17/9M+j8pcm1OmlM434ctWQ4qW7RU56//yq1soFY0Te
  773. # fu2ei03a6m68fYuW6s7XEEK58QisJWRAvEbpwu/eyqfs7PsQ+zSgJHyk2rO95IxdMtEESb2GRuoi
  774. # Bs+AHNdYFTAi+GBWw9dvEgqQ0Mpv0//6bBE/Fb4d7b7f56uUNnnE7mFnjGmGQN+MvC62pfwfvJTT
  775. # EkT1iZ9kjM9FprTFWXT4UmO3XTvesGeE50sV9YPm71X4DCQwc4KE8vyuwj0s6oMNAUACW2ClU9QQ
  776. # y0tRpaF1tzs4N42Q5zl0TzWxbCCjAtC3u6xf+c8MCGrr7DzNhm42LOQiHTa4MwX4x96q7235oiAU
  777. # iQqSI/hyF5yLpWw4etyUvsx2/0/0wkuTU1FozbLoCWJEWcPS7QadMrRRISxHf0YobIeQyz34regl
  778. # t1qSQ3dCU9D6AHLgX6kqllx4X0fnFq7LtfN7fA2itW26v+kAT2QFZ3qZhINGfofCja/pITC1uNAZ
  779. # gsJaTMcQ600krj/ynoxnjT+n1gmeqThac6/Mi3YlVeRtaxI2InL82ZuD+w/dfY9OpPssQjy3xiQa
  780. # jPuaMWXRxz/sS9syOoGVH7XBwKrWpQcpchozWJt40QV5DslJkclcr8aC2AGlzuJMTdEgz1eqV0+H
  781. # bAXG9HRHN/0eJTn1/QAAAAEABVguNTA5AAADjzCCA4swggJzAhRGqVxH4HTLYPGO4rzHcCPeGDKn
  782. # xTANBgkqhkiG9w0BAQsFADCBgTELMAkGA1UEBhMCY2ExEDAOBgNVBAgMB29udGFyaW8xEDAOBgNV
  783. # BAcMB3Rvcm9udG8xFDASBgNVBAoMC2plbmtpbnN0ZXN0MRkwFwYDVQQDDBBqZW5raW5zdGVzdC5p
  784. # bmZvMR0wGwYJKoZIhvcNAQkBFg50ZXN0QHRlc3QuaW5mbzAeFw0xOTEwMDgxNTI5NTVaFw0xOTEx
  785. # MDcxNTI5NTVaMIGBMQswCQYDVQQGEwJjYTEQMA4GA1UECAwHb250YXJpbzEQMA4GA1UEBwwHdG9y
  786. # b250bzEUMBIGA1UECgwLamVua2luc3Rlc3QxGTAXBgNVBAMMEGplbmtpbnN0ZXN0LmluZm8xHTAb
  787. # BgkqhkiG9w0BCQEWDnRlc3RAdGVzdC5pbmZvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
  788. # AQEA02q352JTHGvROMBhSHvSv+vnoOTDKSTz2aLQn0tYrIRqRo+8bfmMjXuhkwZPSnCpvUGNAJ+w
  789. # Jrt/dqMoYUjCBkjylD/qHmnXN5EwS1cMg1Djh65gi5JJLFJ7eNcoSsr/0AJ+TweIal1jJSP3t3PF
  790. # 9Uv21gm6xdm7HnNK66WpUUXLDTKaIs/jtagVY1bLOo9oEVeLN4nT2CYWztpMvdCyEDUzgEdDbmrP
  791. # F5nKUPK5hrFqo1Dc5rUI4ZshL3Lpv398aMxv6n2adQvuL++URMEbXXBhxOrT6rCtYzbcR5fkwS9i
  792. # d3Br45CoWOQro02JAepoU0MQKY5+xQ4Bq9Q7tB9BAwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAe
  793. # 4xc+mSvKkrKBHg9/zpkWgZUiOp4ENJCi8H4tea/PCM439v6y/kfjT/okOokFvX8N5aa1OSz2Vsrl
  794. # m8kjIc6hiA7bKzT6lb0EyjUShFFZ5jmGVP4S7/hviDvgB5yEQxOPpumkdRP513YnEGj/o9Pazi5h
  795. # /MwpRxxazoda9r45kqQpyG+XoM4pB+Fd3JzMc4FUGxfVPxJU4jLawnJJiZ3vqiSyaB0YyUL+Er1Q
  796. # 6NnqtR4gEBF0ZVlQmkycFvD4EC2boP943dLqNUvop+4R3SM1QMM6P5u8iTXtHd/VN4MwMyy1wtog
  797. # hYAzODo1Jt59pcqqKJEas0C/lFJEB3frw4ImNx5fNlJYOpx+ijfQs9m39CevDq0=
  798. agent:
  799. # -- Enable Kubernetes plugin jnlp-agent podTemplate
  800. enabled: true
  801. # -- The name of the pod template to use for providing default values
  802. defaultsProviderTemplate: ""
  803. # Useful for not including a serviceAccount in the template if `false`
  804. # -- Use `serviceAccountAgent.name` as the default value for defaults template `serviceAccount`
  805. useDefaultServiceAccount: true
  806. # -- Override the default service account
  807. # @default -- `serviceAccountAgent.name` if `agent.useDefaultServiceAccount` is `true`
  808. serviceAccount:
  809. # For connecting to the Jenkins controller
  810. # -- Overrides the Kubernetes Jenkins URL
  811. jenkinsUrl:
  812. # connects to the specified host and port, instead of connecting directly to the Jenkins controller
  813. # -- Overrides the Kubernetes Jenkins tunnel
  814. jenkinsTunnel:
  815. # -- Disables the verification of the controller certificate on remote connection. This flag correspond to the "Disable https certificate check" flag in kubernetes plugin UI
  816. skipTlsVerify: false
  817. # -- 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
  818. usageRestricted: false
  819. # -- The connection timeout in seconds for connections to Kubernetes API. The minimum value is 5
  820. kubernetesConnectTimeout: 5
  821. # -- The read timeout in seconds for connections to Kubernetes API. The minimum value is 15
  822. kubernetesReadTimeout: 15
  823. # -- The maximum concurrent connections to Kubernetes API
  824. maxRequestsPerHostStr: "32"
  825. # -- Time in minutes after which the Kubernetes cloud plugin will clean up an idle worker that has not already terminated
  826. retentionTimeout: 5
  827. # -- Seconds to wait for pod to be running
  828. waitForPodSec: 600
  829. # -- Namespace in which the Kubernetes agents should be launched
  830. namespace:
  831. # -- Custom Pod labels (an object with `label-key: label-value` pairs)
  832. podLabels: {}
  833. # -- Custom registry used to pull the agent jnlp image from
  834. jnlpregistry:
  835. image:
  836. # -- Registry to pull the agent jnlp image from
  837. registry: ""
  838. # -- Repository to pull the agent jnlp image from
  839. repository: "jenkins/inbound-agent"
  840. # -- Tag of the image to pull
  841. tag: "3327.v868139a_d00e0-6"
  842. # -- Configure working directory for default agent
  843. workingDir: "/home/jenkins/agent"
  844. nodeUsageMode: "NORMAL"
  845. # -- Append Jenkins labels to the agent
  846. customJenkinsLabels: []
  847. # -- Name of the secret to be used to pull the image
  848. imagePullSecretName:
  849. componentName: "jenkins-agent"
  850. # -- Enables agent communication via websockets
  851. websocket: false
  852. directConnection: false
  853. # -- Agent privileged container
  854. privileged: false
  855. # -- Configure container user
  856. runAsUser:
  857. # -- Configure container group
  858. runAsGroup:
  859. # -- Enables the agent to use the host network
  860. hostNetworking: false
  861. # -- Resources allocation (Requests and Limits)
  862. resources:
  863. requests:
  864. cpu: "512m"
  865. memory: "512Mi"
  866. # ephemeralStorage:
  867. limits:
  868. cpu: "512m"
  869. memory: "512Mi"
  870. # ephemeralStorage:
  871. livenessProbe: {}
  872. # execArgs: "cat /tmp/healthy"
  873. # failureThreshold: 3
  874. # initialDelaySeconds: 0
  875. # periodSeconds: 10
  876. # successThreshold: 1
  877. # timeoutSeconds: 1
  878. # You may want to change this to true while testing a new image
  879. # -- Always pull agent container image before build
  880. alwaysPullImage: false
  881. # When using Pod Security Admission in the Agents namespace with the restricted Pod Security Standard,
  882. # the jnlp container cannot be scheduled without overriding its container definition with a securityContext.
  883. # This option allows to automatically inject in the jnlp container a securityContext
  884. # that is suitable for the use of the restricted Pod Security Standard.
  885. # -- Set a restricted securityContext on jnlp containers
  886. restrictedPssSecurityContext: false
  887. # Controls how agent pods are retained after the Jenkins build completes
  888. # Possible values: Always, Never, OnFailure
  889. podRetention: "Never"
  890. # Disable if you do not want the Yaml the agent pod template to show up
  891. # in the job Console Output. This can be helpful for either security reasons
  892. # or simply to clean up the output to make it easier to read.
  893. showRawYaml: true
  894. # You can define the volumes that you want to mount for this container
  895. # Allowed types are: ConfigMap, EmptyDir, EphemeralVolume, HostPath, Nfs, PVC, Secret
  896. # Configure the attributes as they appear in the corresponding Java class for that type
  897. # https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes
  898. # -- Additional volumes
  899. volumes: []
  900. # - type: ConfigMap
  901. # configMapName: myconfigmap
  902. # mountPath: /var/myapp/myconfigmap
  903. # - type: EmptyDir
  904. # mountPath: /var/myapp/myemptydir
  905. # memory: false
  906. # - type: EphemeralVolume
  907. # mountPath: /var/myapp/myephemeralvolume
  908. # accessModes: ReadWriteOnce
  909. # requestsSize: 10Gi
  910. # storageClassName: mystorageclass
  911. # - type: HostPath
  912. # hostPath: /var/lib/containers
  913. # mountPath: /var/myapp/myhostpath
  914. # - type: Nfs
  915. # mountPath: /var/myapp/mynfs
  916. # readOnly: false
  917. # serverAddress: "192.0.2.0"
  918. # serverPath: /var/lib/containers
  919. # - type: PVC
  920. # claimName: mypvc
  921. # mountPath: /var/myapp/mypvc
  922. # readOnly: false
  923. # - type: Secret
  924. # defaultMode: "600"
  925. # mountPath: /var/myapp/mysecret
  926. # secretName: mysecret
  927. # Pod-wide environment, these vars are visible to any container in the agent pod
  928. # You can define the workspaceVolume that you want to mount for this container
  929. # Allowed types are: DynamicPVC, EmptyDir, EphemeralVolume, HostPath, Nfs, PVC
  930. # Configure the attributes as they appear in the corresponding Java class for that type
  931. # https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/workspace
  932. # -- Workspace volume (defaults to EmptyDir)
  933. workspaceVolume: {}
  934. ## DynamicPVC example
  935. # - type: DynamicPVC
  936. # configMapName: myconfigmap
  937. ## EmptyDir example
  938. # - type: EmptyDir
  939. # memory: false
  940. ## EphemeralVolume example
  941. # - type: EphemeralVolume
  942. # accessModes: ReadWriteOnce
  943. # requestsSize: 10Gi
  944. # storageClassName: mystorageclass
  945. ## HostPath example
  946. # - type: HostPath
  947. # hostPath: /var/lib/containers
  948. ## NFS example
  949. # - type: Nfs
  950. # readOnly: false
  951. # serverAddress: "192.0.2.0"
  952. # serverPath: /var/lib/containers
  953. ## PVC example
  954. # - type: PVC
  955. # claimName: mypvc
  956. # readOnly: false
  957. # Pod-wide environment, these vars are visible to any container in the agent pod
  958. # -- Environment variables for the agent Pod
  959. envVars: []
  960. # - name: PATH
  961. # value: /usr/local/bin
  962. # -- Mount a secret as environment variable
  963. secretEnvVars: []
  964. # - key: PATH
  965. # optional: false # default: false
  966. # secretKey: MY-K8S-PATH
  967. # secretName: my-k8s-secret
  968. # -- Node labels for pod assignment
  969. nodeSelector: {}
  970. # Key Value selectors. Ex:
  971. # nodeSelector
  972. # jenkins-agent: v1
  973. # -- Command to execute when side container starts
  974. command:
  975. # -- Arguments passed to command to execute
  976. args: "${computer.jnlpmac} ${computer.name}"
  977. # -- Side container name
  978. sideContainerName: "jnlp"
  979. # Doesn't allocate pseudo TTY by default
  980. # -- Allocate pseudo tty to the side container
  981. TTYEnabled: false
  982. # -- Max number of agents to launch for a whole cluster.
  983. containerCap: 10
  984. # -- Max number of agents to launch for this type of agent
  985. instanceCap: 2147483647
  986. # -- Agent Pod base name
  987. podName: "default"
  988. # Enables garbage collection of orphan pods for this Kubernetes cloud. (beta)
  989. garbageCollection:
  990. # -- When enabled, Jenkins will periodically check for orphan pods that have not been touched for the given timeout period and delete them.
  991. enabled: false
  992. # -- Namespaces to look at for garbage collection, in addition to the default namespace defined for the cloud. One namespace per line.
  993. namespaces: ""
  994. # namespaces: |-
  995. # namespaceOne
  996. # namespaceTwo
  997. # -- Timeout value for orphaned pods
  998. timeout: 300
  999. # -- Allows the Pod to remain active for reuse until the configured number of minutes has passed since the last step was executed on it
  1000. idleMinutes: 0
  1001. # The raw yaml of a Pod API Object, for example, this allows usage of toleration for agent pods.
  1002. # https://github.com/jenkinsci/kubernetes-plugin#using-yaml-to-define-pod-templates
  1003. # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  1004. # -- The raw yaml of a Pod API Object to merge into the agent spec
  1005. yamlTemplate: ""
  1006. # yamlTemplate: |-
  1007. # apiVersion: v1
  1008. # kind: Pod
  1009. # spec:
  1010. # tolerations:
  1011. # - key: "key"
  1012. # operator: "Equal"
  1013. # value: "value"
  1014. # -- Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates. Possible values: "merge" or "override"
  1015. yamlMergeStrategy: "override"
  1016. # -- Controls whether the defined yaml merge strategy will be inherited if another defined pod template is configured to inherit from the current one
  1017. inheritYamlMergeStrategy: false
  1018. # -- Timeout in seconds for an agent to be online
  1019. connectTimeout: 100
  1020. # -- Annotations to apply to the pod
  1021. annotations: {}
  1022. # Containers specified here are added to all agents. Set key empty to remove container from additional agents.
  1023. # -- Add additional containers to the agents
  1024. additionalContainers: []
  1025. # - sideContainerName: dind
  1026. # image:
  1027. # repository: docker
  1028. # tag: dind
  1029. # command: dockerd-entrypoint.sh
  1030. # args: ""
  1031. # privileged: true
  1032. # resources:
  1033. # requests:
  1034. # cpu: 500m
  1035. # memory: 1Gi
  1036. # limits:
  1037. # cpu: 1
  1038. # memory: 2Gi
  1039. # 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.
  1040. # -- Disable the default Jenkins Agent configuration
  1041. disableDefaultAgent: false
  1042. # Below is the implementation of custom pod templates for the default configured kubernetes cloud.
  1043. # Add a key under podTemplates for each pod template. Each key (prior to | character) is just a label, and can be any value.
  1044. # Keys are only used to give the pod template a meaningful name. The only restriction is they may only contain RFC 1123 \ DNS label
  1045. # characters: lowercase letters, numbers, and hyphens. Each pod template can contain multiple containers.
  1046. # For this pod templates configuration to be loaded, the following values must be set:
  1047. # controller.JCasC.defaultConfig: true
  1048. # Best reference is https://<jenkins_url>/configuration-as-code/reference#Cloud-kubernetes. The example below creates a python pod template.
  1049. # -- Configures extra pod templates for the default kubernetes cloud
  1050. podTemplates: {}
  1051. # python: |
  1052. # - name: python
  1053. # label: jenkins-python
  1054. # serviceAccount: jenkins
  1055. # containers:
  1056. # - name: python
  1057. # image: python:3
  1058. # command: "/bin/sh -c"
  1059. # args: "cat"
  1060. # ttyEnabled: true
  1061. # privileged: true
  1062. # resourceRequestCpu: "400m"
  1063. # resourceRequestMemory: "512Mi"
  1064. # resourceLimitCpu: "1"
  1065. # resourceLimitMemory: "1024Mi"
  1066. # Inherits all values from `agent` so you only need to specify values which differ
  1067. # -- Configure additional
  1068. additionalAgents: {}
  1069. # maven:
  1070. # podName: maven
  1071. # customJenkinsLabels: maven
  1072. # # An example of overriding the jnlp container
  1073. # # sideContainerName: jnlp
  1074. # image:
  1075. # repository: jenkins/jnlp-agent-maven
  1076. # tag: latest
  1077. # python:
  1078. # podName: python
  1079. # customJenkinsLabels: python
  1080. # sideContainerName: python
  1081. # image:
  1082. # repository: python
  1083. # tag: "3"
  1084. # command: "/bin/sh -c"
  1085. # args: "cat"
  1086. # TTYEnabled: true
  1087. # Here you can add additional clouds
  1088. # They inherit all values from the default cloud (including the main agent), so
  1089. # you only need to specify values which differ. If you want to override
  1090. # default additionalAgents with the additionalClouds.additionalAgents set
  1091. # additionalAgentsOverride to `true`.
  1092. additionalClouds: {}
  1093. # remote-cloud-1:
  1094. # kubernetesURL: https://api.remote-cloud.com
  1095. # additionalAgentsOverride: true
  1096. # additionalAgents:
  1097. # maven-2:
  1098. # podName: maven-2
  1099. # customJenkinsLabels: maven
  1100. # # An example of overriding the jnlp container
  1101. # # sideContainerName: jnlp
  1102. # image:
  1103. # repository: jenkins/jnlp-agent-maven
  1104. # tag: latest
  1105. # namespace: my-other-maven-namespace
  1106. # remote-cloud-2:
  1107. # kubernetesURL: https://api.remote-cloud.com
  1108. persistence:
  1109. # -- Enable the use of a Jenkins PVC
  1110. enabled: true
  1111. # A manually managed Persistent Volume and Claim
  1112. # Requires persistence.enabled: true
  1113. # If defined, PVC must be created manually before volume will be bound
  1114. # -- Provide the name of a PVC
  1115. existingClaim: pvc-jenkins
  1116. # jenkins data Persistent Volume Storage Class
  1117. # If defined, storageClassName: <storageClass>
  1118. # If set to "-", storageClassName: "", which disables dynamic provisioning
  1119. # If undefined (the default) or set to null, no storageClassName spec is
  1120. # set, choosing the default provisioner (gp2 on AWS, standard on GKE, AWS & OpenStack)
  1121. # -- Storage class for the PVC
  1122. storageClass:
  1123. # -- Annotations for the PVC
  1124. annotations: {}
  1125. # -- Labels for the PVC
  1126. labels: {}
  1127. # -- The PVC access mode
  1128. accessMode: "ReadWriteOnce"
  1129. # -- The size of the PVC
  1130. size: "8Gi"
  1131. # ref: https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/
  1132. # -- Existing data source to clone PVC from
  1133. dataSource: {}
  1134. # name: PVC-NAME
  1135. # kind: PersistentVolumeClaim
  1136. # -- SubPath for jenkins-home mount
  1137. subPath:
  1138. # -- Additional volumes
  1139. volumes: []
  1140. # - name: nothing
  1141. # emptyDir: {}
  1142. # -- Additional mounts
  1143. mounts: []
  1144. # - mountPath: /var/nothing
  1145. # name: nothing
  1146. # readOnly: true
  1147. networkPolicy:
  1148. # -- Enable the creation of NetworkPolicy resources
  1149. enabled: false
  1150. # For Kubernetes v1.4, v1.5 and v1.6, use 'extensions/v1beta1'
  1151. # For Kubernetes v1.7, use 'networking.k8s.io/v1'
  1152. # -- NetworkPolicy ApiVersion
  1153. apiVersion: networking.k8s.io/v1
  1154. # You can allow agents to connect from both within the cluster (from within specific/all namespaces) AND/OR from a given external IP range
  1155. internalAgents:
  1156. # -- Allow internal agents (from the same cluster) to connect to controller. Agent pods will be filtered based on PodLabels
  1157. allowed: true
  1158. # -- A map of labels (keys/values) that agent pods must have to be able to connect to controller
  1159. podLabels: {}
  1160. # -- A map of labels (keys/values) that agents namespaces must have to be able to connect to controller
  1161. namespaceLabels:
  1162. {}
  1163. # project: myproject
  1164. externalAgents:
  1165. # -- The IP range from which external agents are allowed to connect to controller, i.e., 172.17.0.0/16
  1166. ipCIDR:
  1167. # -- A list of IP sub-ranges to be excluded from the allowlisted IP range
  1168. except:
  1169. []
  1170. # - 172.17.1.0/24
  1171. ## Install Default RBAC roles and bindings
  1172. rbac:
  1173. # -- Whether RBAC resources are created
  1174. create: true
  1175. # -- Whether the Jenkins service account should be able to read Kubernetes secrets
  1176. readSecrets: false
  1177. # -- Whether the Jenkins service account should be able to use the OpenShift "nonroot" Security Context Constraints
  1178. useOpenShiftNonRootSCC: false
  1179. serviceAccount:
  1180. # -- Configures if a ServiceAccount with this name should be created
  1181. create: true
  1182. # The name of the ServiceAccount is autogenerated by default
  1183. # -- The name of the ServiceAccount to be used by access-controlled resources
  1184. name:
  1185. # -- Configures annotations for the ServiceAccount
  1186. annotations: {}
  1187. # -- Configures extra labels for the ServiceAccount
  1188. extraLabels: {}
  1189. # -- Controller ServiceAccount image pull secret
  1190. imagePullSecretName:
  1191. # -- Auto-mount ServiceAccount token
  1192. automountServiceAccountToken: true
  1193. serviceAccountAgent:
  1194. # -- Configures if an agent ServiceAccount should be created
  1195. create: false
  1196. # If not set and create is true, a name is generated using the fullname template
  1197. # -- The name of the agent ServiceAccount to be used by access-controlled resources
  1198. name:
  1199. # -- Configures annotations for the agent ServiceAccount
  1200. annotations: {}
  1201. # -- Configures extra labels for the agent ServiceAccount
  1202. extraLabels: {}
  1203. # -- Agent ServiceAccount image pull secret
  1204. imagePullSecretName:
  1205. # -- Auto-mount ServiceAccount token
  1206. automountServiceAccountToken: true
  1207. # -- Checks if any deprecated values are used
  1208. checkDeprecation: true
  1209. awsSecurityGroupPolicies:
  1210. enabled: false
  1211. policies:
  1212. - name: ""
  1213. securityGroupIds: []
  1214. podSelector: {}
  1215. # Here you can configure unit tests values when executing the helm unittest in the CONTRIBUTING.md
  1216. helmtest:
  1217. # A testing framework for bash
  1218. bats:
  1219. # Bash Automated Testing System (BATS)
  1220. image:
  1221. # -- Registry of the image used to test the framework
  1222. registry: "docker.io"
  1223. # -- Repository of the image used to test the framework
  1224. repository: "bats/bats"
  1225. # -- Tag of the image to test the framework
  1226. tag: "1.12.0"