values.yaml 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485
  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: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.rancher.lab
  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.rancher.lab"
  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.rancher.lab
  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. hostAliases:
  780. - ip: 192.168.5.15
  781. hostnames:
  782. - gitea.rancher.lab
  783. - jenkins.rancher.lab
  784. # Expose Prometheus metrics
  785. prometheus:
  786. # If enabled, add the prometheus plugin to the list of plugins to install
  787. # https://plugins.jenkins.io/prometheus
  788. # -- Enables prometheus service monitor
  789. enabled: false
  790. # -- Additional labels to add to the service monitor object
  791. serviceMonitorAdditionalLabels: {}
  792. # -- Set a custom namespace where to deploy ServiceMonitor resource
  793. serviceMonitorNamespace:
  794. # -- How often prometheus should scrape metrics
  795. scrapeInterval: 60s
  796. # Defaults to the default endpoint used by the prometheus plugin
  797. # -- The endpoint prometheus should get metrics from
  798. scrapeEndpoint: /prometheus
  799. # See here: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
  800. # The `groups` root object is added by default, add the rule entries
  801. # -- Array of prometheus alerting rules
  802. alertingrules: []
  803. # -- Additional labels to add to the PrometheusRule object
  804. alertingRulesAdditionalLabels: {}
  805. # -- Set a custom namespace where to deploy PrometheusRule resource
  806. prometheusRuleNamespace: ""
  807. # RelabelConfigs to apply to samples before scraping. Prometheus Operator automatically adds
  808. # relabelings for a few standard Kubernetes fields. The original scrape job’s name
  809. # is available via the __tmp_prometheus_job_name label.
  810. # More info: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#relabel_config
  811. relabelings: []
  812. # MetricRelabelConfigs to apply to samples before ingestion.
  813. metricRelabelings: []
  814. googlePodMonitor:
  815. # If enabled, It creates Google Managed Prometheus scraping config
  816. enabled: false
  817. # Set a custom namespace where to deploy PodMonitoring resource
  818. # serviceMonitorNamespace: ""
  819. scrapeInterval: 60s
  820. # This is the default endpoint used by the prometheus plugin
  821. scrapeEndpoint: /prometheus
  822. # -- Can be used to disable rendering controller test resources when using helm template
  823. testEnabled: true
  824. httpsKeyStore:
  825. # -- Enables HTTPS keystore on jenkins controller
  826. enable: false
  827. # -- Name of the secret that already has SSL keystore
  828. jenkinsHttpsJksSecretName: ""
  829. # -- Name of the key in the secret that already has SSL keystore
  830. jenkinsHttpsJksSecretKey: "jenkins-jks-file"
  831. # -- Name of the secret that contains the JKS password, if it is not in the same secret as the JKS file
  832. jenkinsHttpsJksPasswordSecretName: ""
  833. # -- Name of the key in the secret that contains the JKS password
  834. jenkinsHttpsJksPasswordSecretKey: "https-jks-password"
  835. disableSecretMount: false
  836. # When HTTPS keystore is enabled, servicePort and targetPort will be used as HTTPS port
  837. # -- HTTP Port that Jenkins should listen to along with HTTPS, it also serves as the liveness and readiness probes port.
  838. httpPort: 8081
  839. # -- Path of HTTPS keystore file
  840. path: "/var/jenkins_keystore"
  841. # -- Jenkins keystore filename which will appear under controller.httpsKeyStore.path
  842. fileName: "keystore.jks"
  843. # -- Jenkins keystore password
  844. password: "password"
  845. # -- Base64 encoded Keystore content. Keystore must be converted to base64 then being pasted here
  846. jenkinsKeyStoreBase64Encoded:
  847. # Convert keystore.jks files content to base64 > $ cat keystore.jks | base64
  848. # /u3+7QAAAAIAAAABAAAAAQANamVua2luc2NpLmNvbQAAAW2r/b1ZAAAFATCCBP0wDgYKKwYBBAEq
  849. # AhEBAQUABIIE6QbCqasvoHS0pSwYqSvdydMCB9t+VNfwhFIiiuAelJfO5sSe2SebJbtwHgLcRz1Z
  850. # gMtWgOSFdl3bWSzA7vrW2LED52h+jXLYSWvZzuDuh8hYO85m10ikF6QR+dTi4jra0whIFDvq3pxe
  851. # TnESxEsN+DvbZM3jA3qsjQJSeISNpDjO099dqQvHpnCn18lyk7J4TWJ8sOQQb1EM2zDAfAOSqA/x
  852. # QuPEFl74DlY+5DIk6EBvpmWhaMSvXzWZACGA0sYqa157dq7O0AqmuLG/EI5EkHETO4CrtBW+yLcy
  853. # 2dUCXOMA+j+NjM1BjrQkYE5vtSfNO6lFZcISyKo5pTFlcA7ut0Fx2nZ8GhHTn32CpeWwNcZBn1gR
  854. # pZVt6DxVVkhTAkMLhR4rL2wGIi/1WRs23ZOLGKtyDNvDHnQyDiQEoJGy9nAthA8aNHa3cfdF10vB
  855. # Drb19vtpFHmpvKEEhpk2EBRF4fTi644Fuhu2Ied6118AlaPvEea+n6G4vBz+8RWuVCmZjLU+7h8l
  856. # Hy3/WdUPoIL5eW7Kz+hS+sRTFzfu9C48dMkQH3a6f3wSY+mufizNF9U298r98TnYy+PfDJK0bstG
  857. # Ph6yPWx8DGXKQBwrhWJWXI6JwZDeC5Ny+l8p1SypTmAjpIaSW3ge+KgcL6Wtt1R5hUV1ajVwVSUi
  858. # HF/FachKqPqyLJFZTGjNrxnmNYpt8P1d5JTvJfmfr55Su/P9n7kcyWp7zMcb2Q5nlXt4tWogOHLI
  859. # OzEWKCacbFfVHE+PpdrcvCVZMDzFogIq5EqGTOZe2poPpBVE+1y9mf5+TXBegy5HToLWvmfmJNTO
  860. # NCDuBjgLs2tdw2yMPm4YEr57PnMX5gGTC3f2ZihXCIJDCRCdQ9sVBOjIQbOCzxFXkVITo0BAZhCi
  861. # Yz61wt3Ud8e//zhXWCkCsSV+IZCxxPzhEFd+RFVjW0Nm9hsb2FgAhkXCjsGROgoleYgaZJWvQaAg
  862. # UyBzMmKDPKTllBHyE3Gy1ehBNGPgEBChf17/9M+j8pcm1OmlM434ctWQ4qW7RU56//yq1soFY0Te
  863. # fu2ei03a6m68fYuW6s7XEEK58QisJWRAvEbpwu/eyqfs7PsQ+zSgJHyk2rO95IxdMtEESb2GRuoi
  864. # Bs+AHNdYFTAi+GBWw9dvEgqQ0Mpv0//6bBE/Fb4d7b7f56uUNnnE7mFnjGmGQN+MvC62pfwfvJTT
  865. # EkT1iZ9kjM9FprTFWXT4UmO3XTvesGeE50sV9YPm71X4DCQwc4KE8vyuwj0s6oMNAUACW2ClU9QQ
  866. # y0tRpaF1tzs4N42Q5zl0TzWxbCCjAtC3u6xf+c8MCGrr7DzNhm42LOQiHTa4MwX4x96q7235oiAU
  867. # iQqSI/hyF5yLpWw4etyUvsx2/0/0wkuTU1FozbLoCWJEWcPS7QadMrRRISxHf0YobIeQyz34regl
  868. # t1qSQ3dCU9D6AHLgX6kqllx4X0fnFq7LtfN7fA2itW26v+kAT2QFZ3qZhINGfofCja/pITC1uNAZ
  869. # gsJaTMcQ600krj/ynoxnjT+n1gmeqThac6/Mi3YlVeRtaxI2InL82ZuD+w/dfY9OpPssQjy3xiQa
  870. # jPuaMWXRxz/sS9syOoGVH7XBwKrWpQcpchozWJt40QV5DslJkclcr8aC2AGlzuJMTdEgz1eqV0+H
  871. # bAXG9HRHN/0eJTn1/QAAAAEABVguNTA5AAADjzCCA4swggJzAhRGqVxH4HTLYPGO4rzHcCPeGDKn
  872. # xTANBgkqhkiG9w0BAQsFADCBgTELMAkGA1UEBhMCY2ExEDAOBgNVBAgMB29udGFyaW8xEDAOBgNV
  873. # BAcMB3Rvcm9udG8xFDASBgNVBAoMC2plbmtpbnN0ZXN0MRkwFwYDVQQDDBBqZW5raW5zdGVzdC5p
  874. # bmZvMR0wGwYJKoZIhvcNAQkBFg50ZXN0QHRlc3QuaW5mbzAeFw0xOTEwMDgxNTI5NTVaFw0xOTEx
  875. # MDcxNTI5NTVaMIGBMQswCQYDVQQGEwJjYTEQMA4GA1UECAwHb250YXJpbzEQMA4GA1UEBwwHdG9y
  876. # b250bzEUMBIGA1UECgwLamVua2luc3Rlc3QxGTAXBgNVBAMMEGplbmtpbnN0ZXN0LmluZm8xHTAb
  877. # BgkqhkiG9w0BCQEWDnRlc3RAdGVzdC5pbmZvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
  878. # AQEA02q352JTHGvROMBhSHvSv+vnoOTDKSTz2aLQn0tYrIRqRo+8bfmMjXuhkwZPSnCpvUGNAJ+w
  879. # Jrt/dqMoYUjCBkjylD/qHmnXN5EwS1cMg1Djh65gi5JJLFJ7eNcoSsr/0AJ+TweIal1jJSP3t3PF
  880. # 9Uv21gm6xdm7HnNK66WpUUXLDTKaIs/jtagVY1bLOo9oEVeLN4nT2CYWztpMvdCyEDUzgEdDbmrP
  881. # F5nKUPK5hrFqo1Dc5rUI4ZshL3Lpv398aMxv6n2adQvuL++URMEbXXBhxOrT6rCtYzbcR5fkwS9i
  882. # d3Br45CoWOQro02JAepoU0MQKY5+xQ4Bq9Q7tB9BAwIDAQABMA0GCSqGSIb3DQEBCwUAA4IBAQAe
  883. # 4xc+mSvKkrKBHg9/zpkWgZUiOp4ENJCi8H4tea/PCM439v6y/kfjT/okOokFvX8N5aa1OSz2Vsrl
  884. # m8kjIc6hiA7bKzT6lb0EyjUShFFZ5jmGVP4S7/hviDvgB5yEQxOPpumkdRP513YnEGj/o9Pazi5h
  885. # /MwpRxxazoda9r45kqQpyG+XoM4pB+Fd3JzMc4FUGxfVPxJU4jLawnJJiZ3vqiSyaB0YyUL+Er1Q
  886. # 6NnqtR4gEBF0ZVlQmkycFvD4EC2boP943dLqNUvop+4R3SM1QMM6P5u8iTXtHd/VN4MwMyy1wtog
  887. # hYAzODo1Jt59pcqqKJEas0C/lFJEB3frw4ImNx5fNlJYOpx+ijfQs9m39CevDq0=
  888. agent:
  889. # -- Enable Kubernetes plugin jnlp-agent podTemplate
  890. enabled: true
  891. # -- The name of the pod template to use for providing default values
  892. defaultsProviderTemplate: ""
  893. # Useful for not including a serviceAccount in the template if `false`
  894. # -- Use `serviceAccountAgent.name` as the default value for defaults template `serviceAccount`
  895. useDefaultServiceAccount: true
  896. # -- Override the default service account
  897. # @default -- `serviceAccountAgent.name` if `agent.useDefaultServiceAccount` is `true`
  898. serviceAccount:
  899. create: false
  900. name: jenkins
  901. annotations: {}
  902. # For connecting to the Jenkins controller
  903. # -- Overrides the Kubernetes Jenkins URL
  904. jenkinsUrl:
  905. # connects to the specified host and port, instead of connecting directly to the Jenkins controller
  906. # -- Overrides the Kubernetes Jenkins tunnel
  907. jenkinsTunnel:
  908. # -- Disables the verification of the controller certificate on remote connection. This flag correspond to the "Disable https certificate check" flag in kubernetes plugin UI
  909. skipTlsVerify: false
  910. # -- 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
  911. usageRestricted: false
  912. # -- The connection timeout in seconds for connections to Kubernetes API. The minimum value is 5
  913. kubernetesConnectTimeout: 5
  914. # -- The read timeout in seconds for connections to Kubernetes API. The minimum value is 15
  915. kubernetesReadTimeout: 15
  916. # -- The maximum concurrent connections to Kubernetes API
  917. maxRequestsPerHostStr: "32"
  918. # -- Time in minutes after which the Kubernetes cloud plugin will clean up an idle worker that has not already terminated
  919. retentionTimeout: 5
  920. # -- Seconds to wait for pod to be running
  921. waitForPodSec: 600
  922. # -- Namespace in which the Kubernetes agents should be launched
  923. namespace:
  924. # -- Custom Pod labels (an object with `label-key: label-value` pairs)
  925. podLabels: {}
  926. # -- Custom registry used to pull the agent jnlp image from
  927. jnlpregistry:
  928. image:
  929. # -- Registry to pull the agent jnlp image from
  930. registry: ""
  931. # -- Repository to pull the agent jnlp image from
  932. repository: "jenkins/inbound-agent"
  933. # -- Tag of the image to pull
  934. tag: "3341.v0766d82b_dec0-2"
  935. # -- Configure working directory for default agent
  936. workingDir: "/home/jenkins/agent"
  937. nodeUsageMode: "NORMAL"
  938. # -- Append Jenkins labels to the agent
  939. customJenkinsLabels: []
  940. # -- Name of the secret to be used to pull the image
  941. imagePullSecretName:
  942. componentName: "jenkins-agent"
  943. # -- Enables agent communication via websockets
  944. websocket: false
  945. directConnection: false
  946. # -- Agent privileged container
  947. privileged: false
  948. # -- Configure container user
  949. runAsUser:
  950. # -- Configure container group
  951. runAsGroup:
  952. # -- Enables the agent to use the host network
  953. hostNetworking: false
  954. # -- Resources allocation (Requests and Limits)
  955. resources:
  956. requests:
  957. cpu: "512m"
  958. memory: "512Mi"
  959. # ephemeralStorage:
  960. limits:
  961. cpu: "512m"
  962. memory: "512Mi"
  963. # ephemeralStorage:
  964. livenessProbe: {}
  965. # execArgs: "cat /tmp/healthy"
  966. # failureThreshold: 3
  967. # initialDelaySeconds: 0
  968. # periodSeconds: 10
  969. # successThreshold: 1
  970. # timeoutSeconds: 1
  971. # You may want to change this to true while testing a new image
  972. # -- Always pull agent container image before build
  973. alwaysPullImage: false
  974. # When using Pod Security Admission in the Agents namespace with the restricted Pod Security Standard,
  975. # the jnlp container cannot be scheduled without overriding its container definition with a securityContext.
  976. # This option allows to automatically inject in the jnlp container a securityContext
  977. # that is suitable for the use of the restricted Pod Security Standard.
  978. # -- Set a restricted securityContext on jnlp containers
  979. restrictedPssSecurityContext: false
  980. # Controls how agent pods are retained after the Jenkins build completes
  981. # Possible values: Always, Never, OnFailure
  982. podRetention: "Never"
  983. # Disable if you do not want the Yaml the agent pod template to show up
  984. # in the job Console Output. This can be helpful for either security reasons
  985. # or simply to clean up the output to make it easier to read.
  986. showRawYaml: true
  987. # You can define the volumes that you want to mount for this container
  988. # Allowed types are: ConfigMap, EmptyDir, EphemeralVolume, HostPath, Nfs, PVC, Secret
  989. # Configure the attributes as they appear in the corresponding Java class for that type
  990. # https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes
  991. # -- Additional volumes
  992. volumes: []
  993. # - type: ConfigMap
  994. # configMapName: myconfigmap
  995. # mountPath: /var/myapp/myconfigmap
  996. # - type: EmptyDir
  997. # mountPath: /var/myapp/myemptydir
  998. # memory: false
  999. # - type: EphemeralVolume
  1000. # mountPath: /var/myapp/myephemeralvolume
  1001. # accessModes: ReadWriteOnce
  1002. # requestsSize: 10Gi
  1003. # storageClassName: mystorageclass
  1004. # - type: HostPath
  1005. # hostPath: /var/lib/containers
  1006. # mountPath: /var/myapp/myhostpath
  1007. # - type: Nfs
  1008. # mountPath: /var/myapp/mynfs
  1009. # readOnly: false
  1010. # serverAddress: "192.0.2.0"
  1011. # serverPath: /var/lib/containers
  1012. # - type: PVC
  1013. # claimName: mypvc
  1014. # mountPath: /var/myapp/mypvc
  1015. # readOnly: false
  1016. # - type: Secret
  1017. # defaultMode: "600"
  1018. # mountPath: /var/myapp/mysecret
  1019. # secretName: mysecret
  1020. # Pod-wide environment, these vars are visible to any container in the agent pod
  1021. # You can define the workspaceVolume that you want to mount for this container
  1022. # Allowed types are: DynamicPVC, EmptyDir, EphemeralVolume, HostPath, Nfs, PVC
  1023. # Configure the attributes as they appear in the corresponding Java class for that type
  1024. # https://github.com/jenkinsci/kubernetes-plugin/tree/master/src/main/java/org/csanchez/jenkins/plugins/kubernetes/volumes/workspace
  1025. # -- Workspace volume (defaults to EmptyDir)
  1026. workspaceVolume: {}
  1027. ## DynamicPVC example
  1028. # - type: DynamicPVC
  1029. # configMapName: myconfigmap
  1030. ## EmptyDir example
  1031. # - type: EmptyDir
  1032. # memory: false
  1033. ## EphemeralVolume example
  1034. # - type: EphemeralVolume
  1035. # accessModes: ReadWriteOnce
  1036. # requestsSize: 10Gi
  1037. # storageClassName: mystorageclass
  1038. ## HostPath example
  1039. # - type: HostPath
  1040. # hostPath: /var/lib/containers
  1041. ## NFS example
  1042. # - type: Nfs
  1043. # readOnly: false
  1044. # serverAddress: "192.0.2.0"
  1045. # serverPath: /var/lib/containers
  1046. ## PVC example
  1047. # - type: PVC
  1048. # claimName: mypvc
  1049. # readOnly: false
  1050. # Pod-wide environment, these vars are visible to any container in the agent pod
  1051. # -- Environment variables for the agent Pod
  1052. envVars: []
  1053. # - name: PATH
  1054. # value: /usr/local/bin
  1055. # -- Mount a secret as environment variable
  1056. secretEnvVars: []
  1057. # - key: PATH
  1058. # optional: false # default: false
  1059. # secretKey: MY-K8S-PATH
  1060. # secretName: my-k8s-secret
  1061. # -- Node labels for pod assignment
  1062. nodeSelector: {}
  1063. # Key Value selectors. Ex:
  1064. # nodeSelector
  1065. # jenkins-agent: v1
  1066. # -- Command to execute when side container starts
  1067. command:
  1068. # -- Arguments passed to command to execute
  1069. args: "${computer.jnlpmac} ${computer.name}"
  1070. # -- Side container name
  1071. sideContainerName: "jnlp"
  1072. # Doesn't allocate pseudo TTY by default
  1073. # -- Allocate pseudo tty to the side container
  1074. TTYEnabled: false
  1075. # -- Max number of agents to launch for a whole cluster.
  1076. containerCap: 10
  1077. # -- Max number of agents to launch for this type of agent
  1078. instanceCap: 2147483647
  1079. # -- Agent Pod base name
  1080. podName: "default"
  1081. # Enables garbage collection of orphan pods for this Kubernetes cloud. (beta)
  1082. garbageCollection:
  1083. # -- When enabled, Jenkins will periodically check for orphan pods that have not been touched for the given timeout period and delete them.
  1084. enabled: false
  1085. # -- Namespaces to look at for garbage collection, in addition to the default namespace defined for the cloud. One namespace per line.
  1086. namespaces: ""
  1087. # namespaces: |-
  1088. # namespaceOne
  1089. # namespaceTwo
  1090. # -- Timeout value for orphaned pods
  1091. timeout: 300
  1092. # -- Allows the Pod to remain active for reuse until the configured number of minutes has passed since the last step was executed on it
  1093. idleMinutes: 0
  1094. # The raw yaml of a Pod API Object, for example, this allows usage of toleration for agent pods.
  1095. # https://github.com/jenkinsci/kubernetes-plugin#using-yaml-to-define-pod-templates
  1096. # https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
  1097. # -- The raw yaml of a Pod API Object to merge into the agent spec
  1098. yamlTemplate: ""
  1099. # yamlTemplate: |-
  1100. # apiVersion: v1
  1101. # kind: Pod
  1102. # spec:
  1103. # tolerations:
  1104. # - key: "key"
  1105. # operator: "Equal"
  1106. # value: "value"
  1107. # -- Defines how the raw yaml field gets merged with yaml definitions from inherited pod templates. Possible values: "merge" or "override"
  1108. yamlMergeStrategy: "override"
  1109. # -- Controls whether the defined yaml merge strategy will be inherited if another defined pod template is configured to inherit from the current one
  1110. inheritYamlMergeStrategy: false
  1111. # -- Timeout in seconds for an agent to be online
  1112. connectTimeout: 100
  1113. # -- Annotations to apply to the pod
  1114. annotations: {}
  1115. # Containers specified here are added to all agents. Set key empty to remove container from additional agents.
  1116. # -- Add additional containers to the agents
  1117. additionalContainers: []
  1118. # - sideContainerName: dind
  1119. # image:
  1120. # repository: docker
  1121. # tag: dind
  1122. # command: dockerd-entrypoint.sh
  1123. # args: ""
  1124. # privileged: true
  1125. # resources:
  1126. # requests:
  1127. # cpu: 500m
  1128. # memory: 1Gi
  1129. # limits:
  1130. # cpu: 1
  1131. # memory: 2Gi
  1132. # 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.
  1133. # -- Disable the default Jenkins Agent configuration
  1134. disableDefaultAgent: false
  1135. # Below is the implementation of custom pod templates for the default configured kubernetes cloud.
  1136. # Add a key under podTemplates for each pod template. Each key (prior to | character) is just a label, and can be any value.
  1137. # Keys are only used to give the pod template a meaningful name. The only restriction is they may only contain RFC 1123 \ DNS label
  1138. # characters: lowercase letters, numbers, and hyphens. Each pod template can contain multiple containers.
  1139. # For this pod templates configuration to be loaded, the following values must be set:
  1140. # controller.JCasC.defaultConfig: true
  1141. # Best reference is https://<jenkins_url>/configuration-as-code/reference#Cloud-kubernetes. The example below creates a python pod template.
  1142. # -- Configures extra pod templates for the default kubernetes cloud
  1143. podTemplates: {}
  1144. # python: |
  1145. # - name: python
  1146. # label: jenkins-python
  1147. # serviceAccount: jenkins
  1148. # containers:
  1149. # - name: python
  1150. # image: python:3
  1151. # command: "/bin/sh -c"
  1152. # args: "cat"
  1153. # ttyEnabled: true
  1154. # privileged: true
  1155. # resourceRequestCpu: "400m"
  1156. # resourceRequestMemory: "512Mi"
  1157. # resourceLimitCpu: "1"
  1158. # resourceLimitMemory: "1024Mi"
  1159. # Inherits all values from `agent` so you only need to specify values which differ
  1160. # -- Configure additional
  1161. additionalAgents: {}
  1162. # maven:
  1163. # podName: maven
  1164. # customJenkinsLabels: maven
  1165. # # An example of overriding the jnlp container
  1166. # # sideContainerName: jnlp
  1167. # image:
  1168. # repository: jenkins/jnlp-agent-maven
  1169. # tag: latest
  1170. # python:
  1171. # podName: python
  1172. # customJenkinsLabels: python
  1173. # sideContainerName: python
  1174. # image:
  1175. # repository: python
  1176. # tag: "3"
  1177. # command: "/bin/sh -c"
  1178. # args: "cat"
  1179. # TTYEnabled: true
  1180. # Here you can add additional clouds
  1181. # They inherit all values from the default cloud (including the main agent), so
  1182. # you only need to specify values which differ. If you want to override
  1183. # default additionalAgents with the additionalClouds.additionalAgents set
  1184. # additionalAgentsOverride to `true`.
  1185. additionalClouds: {}
  1186. # remote-cloud-1:
  1187. # kubernetesURL: https://api.remote-cloud.com
  1188. # additionalAgentsOverride: true
  1189. # additionalAgents:
  1190. # maven-2:
  1191. # podName: maven-2
  1192. # customJenkinsLabels: maven
  1193. # # An example of overriding the jnlp container
  1194. # # sideContainerName: jnlp
  1195. # image:
  1196. # repository: jenkins/jnlp-agent-maven
  1197. # tag: latest
  1198. # namespace: my-other-maven-namespace
  1199. # remote-cloud-2:
  1200. # kubernetesURL: https://api.remote-cloud.com
  1201. persistence:
  1202. # -- Enable the use of a Jenkins PVC
  1203. enabled: true
  1204. # A manually managed Persistent Volume and Claim
  1205. # Requires persistence.enabled: true
  1206. # If defined, PVC must be created manually before volume will be bound
  1207. # -- Provide the name of a PVC
  1208. existingClaim: jenkins
  1209. # jenkins data Persistent Volume Storage Class
  1210. # If defined, storageClassName: <storageClass>
  1211. # If set to "-", storageClassName: "", which disables dynamic provisioning
  1212. # If undefined (the default) or set to null, no storageClassName spec is
  1213. # set, choosing the default provisioner (gp2 on AWS, standard on GKE, AWS & OpenStack)
  1214. # -- Storage class for the PVC
  1215. storageClass:
  1216. # -- Annotations for the PVC
  1217. annotations: {}
  1218. # -- Labels for the PVC
  1219. labels: {}
  1220. # -- The PVC access mode
  1221. accessMode: "ReadWriteOnce"
  1222. # -- The size of the PVC
  1223. size: "8Gi"
  1224. # ref: https://kubernetes.io/docs/concepts/storage/volume-pvc-datasource/
  1225. # -- Existing data source to clone PVC from
  1226. dataSource: {}
  1227. # name: PVC-NAME
  1228. # kind: PersistentVolumeClaim
  1229. # -- SubPath for jenkins-home mount
  1230. subPath:
  1231. # -- Additional volumes
  1232. volumes: []
  1233. # - name: nothing
  1234. # emptyDir: {}
  1235. # -- Additional mounts
  1236. mounts: []
  1237. # - mountPath: /var/nothing
  1238. # name: nothing
  1239. # readOnly: true
  1240. networkPolicy:
  1241. # -- Enable the creation of NetworkPolicy resources
  1242. enabled: false
  1243. # For Kubernetes v1.4, v1.5 and v1.6, use 'extensions/v1beta1'
  1244. # For Kubernetes v1.7, use 'networking.k8s.io/v1'
  1245. # -- NetworkPolicy ApiVersion
  1246. apiVersion: networking.k8s.io/v1
  1247. # You can allow agents to connect from both within the cluster (from within specific/all namespaces) AND/OR from a given external IP range
  1248. internalAgents:
  1249. # -- Allow internal agents (from the same cluster) to connect to controller. Agent pods will be filtered based on PodLabels
  1250. allowed: true
  1251. # -- A map of labels (keys/values) that agent pods must have to be able to connect to controller
  1252. podLabels: {}
  1253. # -- A map of labels (keys/values) that agents namespaces must have to be able to connect to controller
  1254. namespaceLabels:
  1255. {}
  1256. # project: myproject
  1257. externalAgents:
  1258. # -- The IP range from which external agents are allowed to connect to controller, i.e., 172.17.0.0/16
  1259. ipCIDR:
  1260. # -- A list of IP sub-ranges to be excluded from the allowlisted IP range
  1261. except:
  1262. []
  1263. # - 172.17.1.0/24
  1264. ## Install Default RBAC roles and bindings
  1265. rbac:
  1266. # -- Whether RBAC resources are created
  1267. create: true
  1268. # -- Whether the Jenkins service account should be able to read Kubernetes secrets
  1269. readSecrets: false
  1270. # -- Whether the Jenkins service account should be able to use the OpenShift "nonroot" Security Context Constraints
  1271. useOpenShiftNonRootSCC: false
  1272. serviceAccount:
  1273. # -- Configures if a ServiceAccount with this name should be created
  1274. create: true
  1275. # The name of the ServiceAccount is autogenerated by default
  1276. # -- The name of the ServiceAccount to be used by access-controlled resources
  1277. name:
  1278. # -- Configures annotations for the ServiceAccount
  1279. annotations: {}
  1280. # -- Configures extra labels for the ServiceAccount
  1281. extraLabels: {}
  1282. # -- Controller ServiceAccount image pull secret
  1283. imagePullSecretName:
  1284. # -- Auto-mount ServiceAccount token
  1285. automountServiceAccountToken: true
  1286. serviceAccountAgent:
  1287. # -- Configures if an agent ServiceAccount should be created
  1288. create: false
  1289. # If not set and create is true, a name is generated using the fullname template
  1290. # -- The name of the agent ServiceAccount to be used by access-controlled resources
  1291. name:
  1292. # -- Configures annotations for the agent ServiceAccount
  1293. annotations: {}
  1294. # -- Configures extra labels for the agent ServiceAccount
  1295. extraLabels: {}
  1296. # -- Agent ServiceAccount image pull secret
  1297. imagePullSecretName:
  1298. # -- Auto-mount ServiceAccount token
  1299. automountServiceAccountToken: true
  1300. # -- Checks if any deprecated values are used
  1301. checkDeprecation: true
  1302. awsSecurityGroupPolicies:
  1303. enabled: false
  1304. policies:
  1305. - name: ""
  1306. securityGroupIds: []
  1307. podSelector: {}
  1308. # Here you can configure unit tests values when executing the helm unittest in the CONTRIBUTING.md
  1309. helmtest:
  1310. # A testing framework for bash
  1311. bats:
  1312. # Bash Automated Testing System (BATS)
  1313. image:
  1314. # -- Registry of the image used to test the framework
  1315. registry: "docker.io"
  1316. # -- Repository of the image used to test the framework
  1317. repository: "bats/bats"
  1318. # -- Tag of the image to test the framework
  1319. tag: "1.12.0"