「Jenkins」- 部署 | 管理

Installing and Upgrading // 安装升级 | 服务简单部署;服务简单使用;运行服务并验证能够访问;
High-availability Cluster // 高可用性 | 部署(生产级别)
Backup, Recover, Migrate // 备份恢复 |
Observability of Service // 服务观测 | 服务观测
Performance Tuning, Trace // 性能调优 | 性能优化:基准测试;压力测试;
Permission and Security // 安全权限 |

版本选择

Changelog | https://www.jenkins.io/changelog/
LTS Changelog | https://www.jenkins.io/changelog-stable/

服务部署

官网提供多种安装方式,以在不同的环境中部署 Jenkins 服务 | https://www.jenkins.io/doc/book/installing

on Kubernetes | with Helm v3

https://www.jenkins.io/doc/book/installing/kubernetes/#install-jenkins-with-helm-v3

官方文档 | https://www.jenkins.io/doc/book/installing/docker
镜像仓库 | https://hub.docker.com/r/jenkins/jenkins
代码仓库 | https://github.com/jenkinsci/docker

helm repo add jenkinsci https://charts.jenkins.io
helm repo update

helm search repo jenkinsci
helm pull jenkinsci/jenkins

helm show values ./jenkins-5.8.47.tgz -f jenkins-5.8.47.tgz.helm-values.yaml
vim jenkins-5.8.47.tgz.helm-values.yaml
... nameOverride: "jenkins-ci"
... fullnameOverride: "jenkins-ci"
... persistence.storageClass: 
... persistence.size: 
... controller.image: 
... controller.username:
... controller.password:
... controller.ingress: 
... controller.additionalPlugins: 
... controller.initializeOnce: true

helm upgrade --install --namespace cicd-platform --create-namespace \
    jenkins-ci ./jenkins-5.8.47.tgz -f jenkins-5.8.47.tgz.helm-values.yaml 

on Kubernetes | with Jenkins Operator

https://www.jenkins.io/doc/book/installing/kubernetes/#install-jenkins-with-jenkins-operator

官网:https://jenkinsci.github.io/kubernetes-operator
文档:https://jenkinsci.github.io/kubernetes-operator/docs
仓库:https://github.com/jenkinsci/kubernetes-operator

Jenkins Configuration as Code

https://plugins.jenkins.io/configuration-as-code

服务运行

How to restart Jenkins manually? – Stack Overflow

(jenkins_url)/safeRestart
(jenkins_url)/restart