Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Pod template configuration of k8s cloud is lost #1071

Open
huangjun0210 opened this issue Apr 16, 2024 · 2 comments
Open

The Pod template configuration of k8s cloud is lost #1071

huangjun0210 opened this issue Apr 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@huangjun0210
Copy link

huangjun0210 commented Apr 16, 2024

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

- Helm: v3.8.2
- Kubernetes: v1.27.11

Chart version

jenkins-5.0.20

What happened?

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.

What you expected to happen?

No response

How to reproduce it

No response

Anything else we need to know?

Before jenkins restarts:
image

After restarting jenkins:
image

Storage class added in values.yaml

image

@huangjun0210 huangjun0210 added the bug Something isn't working label Apr 16, 2024
@typ431127
Copy link

I also encountered this problem! My jenkins_home and jenkins_cache are configured with local persistence, but the data is still lost after configuration

@typ431127
Copy link

描述错误

当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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants