values.yaml 59 KB

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