简体   繁体   English

作为容器运行的 Jenkins 上永久节点的持久性 kubernetes

[英]Persistence of permanent node on Jenkins running as container kubernetes

I am facing an issue where jenkins running on kubernetes looses permanent node added manually after jenkins pod restarts.我面临一个问题,在 kubernetes 上运行的 jenkins 在 jenkins pod 重新启动后会丢失手动添加的永久节点。 Is there a way to persist jenkins node added manually during pod restart.有没有办法持久化在 pod 重启期间手动添加的 jenkins 节点。 Any way we can persist permanant node in jenkins.我们可以通过任何方式将永久节点保存在 jenkins 中。

When you adding new agents to Jenkins, it is changing main jenkins' config.当您向 Jenkins 添加新代理时,它正在更改主要 jenkins 的配置。

To save it's state after restarting - use persistent volume for master.要在重新启动后保存它的 state - 使用持久卷作为主控。

But if you are using jenkins in kubernetes - there is no need to add agents manually.但如果您在 kubernetes 中使用 jenkins - 则无需手动添加代理。 Just configure pod templates and call them via labels.只需配置 pod 模板并通过标签调用它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM