# Jenkins Helm Chart
Jenkins master and agent cluster utilizing the Jenkins Kubernetes plugin
* https://wiki.jenkins-ci.org/display/JENKINS/Kubernetes+Plugin
Inspired by the awesome work of Carlos Sanchez <mailto:carlos@apache.org>
## Chart Details
This chart will do the following:
* 1 x Jenkins Master with port 8080 exposed on an external LoadBalancer
* All using Kubernetes Deployments
## Installing the Chart
To install the chart with the release name `my-release`:
```bash
$ helm install --name my-release stable/jenkins
```
## Upgrading an existing Release to a new major version
A major chart version change (like v0.40.0 -> v1.0.0) indicates that there is an incompatible breaking change needing manual actions.
### 1.0.0
Breaking changes:
- values have been renamed to follow helm chart best practices for naming conventions so
that all variables start with a lowercase letter and words are separated with camelcase
https://helm.sh/docs/chart_best_practices/#naming-conventions
- all resources are now using recommended standard labels
https://helm.sh/docs/chart_best_practices/#standard-labels
As a result of the label changes also the selectors of the deployment have been updated.
Those are immutable so trying an updated will cause an error like:
```
Error: Deployment.apps "jenkins" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app.kubernetes.io/component":"jenkins-master", "app.kubernetes.io/instance":"jenkins"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
```
In order to upgrade, delete the Jenkins Deployment before upgrading:
```
kubectl delete deploy jenkins
```
## Configuration
The following tables list the configurable parameters of the Jenkins chart and their default values.
### Jenkins Master
| Parameter | Description | Default |
| --------------------------------- | ------------------------------------ | ----------------------------------------- |
| `checkDeprecation` | Checks for deprecated values used | `true` |
| `clusterZone` | Override the cluster name for FQDN resolving | `cluster.local` |
| `nameOverride` | Override the resource name prefix | `jenkins` |
| `fullnameOverride` | Override the full resource names | `jenkins-{release-name}` (or `jenkins` if release-name is `jenkins`) |
| `namespaceOverride` | Override the deployment namespace | Not set (`Release.Namespace`) |
| `master.componentName` | Jenkins master name | `jenkins-master` |
| `master.image` | Master image name | `jenkins/jenkins` |
| `master.tag` | Master image tag | `lts` |
| `master.imagePullPolicy` | Master image pull policy | `Always` |
| `master.imagePullSecret` | Master image pull secret | Not set |
| `master.numExecutors` | Set Number of executors | 0 |
| `master.customJenkinsLabels` | Append Jenkins labels to the master | `{}` |
| `master.useSecurity` | Use basic security | `true` |
| `master.securityRealm` | Custom Security Realm | Not set |
| `master.authorizationStrategy` | Jenkins XML job config for AuthorizationStrategy | Not set |
| `master.deploymentLabels` | Custom Deployment labels | Not set |
| `master.serviceLabels` | Custom Service labels | Not set |
| `master.podLabels` | Custom Pod labels | Not set |
| `master.adminUser` | Admin username (and password) created as a secret if useSecurity is true | `admin` |
| `master.adminPassword` | Admin password (and user) created as a secret if useSecurity is true | Random value |
| `master.jenkinsAdminEmail` | Email address for the administrator of the Jenkins instance | Not set |
| `master.resources` | Resources allocation (Requests and Limits) | `{requests: {cpu: 50m, memory: 256Mi}, limits: {cpu: 2000m, memory: 4096Mi}}`|
| `master.initContainerEnv` | Environment variables for Init Container | Not set |
| `master.containerEnv` | Environment variables for Jenkins Container | Not set |
| `master.usePodSecurityContext` | Enable pod security context (must be `true` if `runAsUser` or `fsGroup` are set) | `true` |
| `master.runAsUser` | uid that jenkins runs with | `0` |
| `master.fsGroup` | uid that will be used for persistent volume | `0` |
| `master.hostAliases` | Aliases for IPs in `/etc/hosts` | `[]` |
| `master.serviceAnnotations` | Service annotations | `{}` |
| `master.serviceType` | k8s service type | `LoadBalancer` |
| `master.servicePort` | k8s service port | `8080` |
| `master.targetPort` | k8s target port | `8080` |
| `master.nodePort` | k8s node port | Not set |
| `master.healthProbes` | Enable k8s liveness and readiness probes | `true` |
| `master.healthProbesLivenessTimeout` | Set the timeout for the liveness probe | `5` |
| `master.healthProbesReadinessTimeout` | Set the timeout for the readiness probe | `5` |
| `master.healthProbeLivenessPeriodSeconds` | Set how often (in seconds) to perform the liveness probe | `10` |
| `master.healthProbeReadinessPeriodSeconds` | Set how often (in seconds) to perform the readiness probe | `10` |
| `master.healthProbeLivenessFailureThreshold` | Set the failure threshold for the liveness probe | `5` |
| `master.healthProbeReadinessFailureThreshold` | Set the failure threshold for the readiness probe | `3` |
| `master.healthProbeLivenessInitialDelay` | Set the initial delay for the liveness probe | `90` |
| `master.healthProbeReadinessInitialDelay` | Set the initial delay for the readiness probe | `60` |
| `master.slaveListenerPort` | Listening port for agents | `50000` |
| `master.slaveHostPort` | Host port to listen for agents | Not set |
| `master.slaveKubernetesNamespace` | Namespace in which the Kubernetes agents should be launched | Not set |
| `master.disabledAgentProtocols` | Disabled agent protocols | `JNLP-connect JNLP2-connect` |
| `master.csrf.defaultCrumbIssuer.enabled` | Enable the default CSRF Crumb issuer | `true` |
| `master.csrf.defaultCrumbIssuer.proxyCompatability` | Enable proxy compatibility | `true` |
| `master.cli` | Enable CLI over remo
没有合适的资源?快使用搜索试试~ 我知道了~
基于(Mailman + Exim4 + Postgres)构建的可用于管理社区基本资源的脚本
共2000个文件
_meta:802个
_service:801个
yaml:116个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 84 浏览量
2023-11-26
09:43:58
上传
评论
收藏 114.26MB ZIP 举报
温馨提示
基于(Mailman + Exim4 + Postgres)构建的可用于管理社区基本资源的脚本。。
资源推荐
资源详情
资源评论
收起资源包目录
基于(Mailman + Exim4 + Postgres)构建的可用于管理社区基本资源的脚本 (2000个子文件)
_meta 163B
_meta 145B
_meta 144B
_meta 143B
_meta 142B
_meta 141B
_meta 140B
_meta 138B
_meta 138B
_meta 138B
_meta 137B
_meta 137B
_meta 122B
_meta 117B
_meta 115B
_meta 114B
_meta 112B
_meta 112B
_meta 110B
_meta 110B
_meta 110B
_meta 110B
_meta 110B
_meta 110B
_meta 109B
_meta 109B
_meta 109B
_meta 109B
_meta 109B
_meta 109B
_meta 109B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 108B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 107B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 106B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 105B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 104B
_meta 103B
_meta 103B
_meta 103B
_meta 103B
_meta 103B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
Java程序员-张凯
- 粉丝: 1w+
- 资源: 6828
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功