Open huangjun0210 opened 7 months ago
I also encountered this problem! My jenkins_home and jenkins_cache are configured with local persistence, but the data is still lost after configuration
描述错误
当jenkins容器重启的时候,k8s云的Pod模板配置就丢失了,默认模式下做的修改都恢复成原来的,新的都没了。
Helm 和 Kubernetes 的版本
- Helm: v3.8.2 - Kubernetes: v1.27.11
图表版本
jenkins-5.0.20
发生了什么?
1. Do some k8s cloud Pod template configuration, such as modifying the default template or adding a new template 2. Install a plug-in and check the box to restart jenkins after the installation is complete. 3. After the installation is completed and jenkins restarts, check the k8s cloud Pod template configuration. 4. The Pod template configuration of k8s cloud is lost.
您期望发生什么?
没有反应
如何重现
没有反应
我们还需要了解什么吗?
Jenkins重启前:
重启jenkins后:
在 values.yaml 中添加存储类
I solved this problem by changing the defaultconfig parameter in values.yml to false
JCasC:
# -- Enables default Jenkins configuration via configuration as code plugin
defaultConfig: false
描述错误
当修改jenkins容器重启的时候,k8s云的Pod模板配置就丢失了,默认模式下做的都恢复成原来的了,新的都已经了。
Helm 和 Kubernetes 的版本
- Helm: v3.8.2 - Kubernetes: v1.27.11
圖表版本
jenkins-5.0.20
发生了什么?
- Do some k8s cloud Pod template configuration, such as modifying the default template or adding a new template
- Install a plug-in and check the box to restart jenkins after the installation is complete.
- After the installation is completed and jenkins restarts, check the k8s cloud Pod template configuration.
- The Pod template configuration of k8s cloud is lost.
您期望发生什么?
没有反应
如何重现
没有反应
我们还需要了解什么?
Jenkins重新启动前: 重新启动jenkins后: 在values.yaml中添加存储类
我通过将 values.yml 中的 defaultconfig 参数更改为 false 解决了此问题
JCasC: # -- Enables default Jenkins configuration via configuration as code plugin defaultConfig: false
Thank you.
Describe the bug
When the jenkins container is restarted, the Pod template configuration of k8s cloud is lost. The modifications made in the default mode are restored to the original ones, and the new ones are gone.
Version of Helm and Kubernetes
Chart version
jenkins-5.0.20
What happened?
What you expected to happen?
No response
How to reproduce it
No response
Anything else we need to know?
Before jenkins restarts:
After restarting jenkins:
Storage class added in values.yaml