values.yaml 59 KB

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