# Manage nodes & cloud

**URL:** <https://community.jenkins.io/t/manage-nodes-cloud/5094>\
**Category:** Using Jenkins\
**Created:** [December 23, 2022, 6:48am UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094 "2022-12-23T06:48:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maheshrvm](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maheshrvm](https://community.jenkins.io/u/Maheshrvm)\
**Post date:** [December 23, 2022, 6:48am UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/1 "2022-12-23T06:48:54Z")

</div>

I want to save the changes in configure cloud (Manage Jenkins → Manage Nodes and Clouds → Configure Clouds → Add a new cloud → Kubernetes) permanently, but unfortunately after restart Jenkins/pod changes are reset to default. I wanted to set the kubernetes cluster details, Jenkins URL, port and pod template details in Configure cloud settings. Please suggest how to achieve this to make changes permanently without losing after Jenkins/pod restart.

---

<div class="post-metadata">

**Author:** ![PierreBtz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/pierrebtz/32/55_2.png) [@PierreBtz](https://community.jenkins.io/u/PierreBtz)\
**Post date:** [January 2, 2023, 2:49pm UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/2 "2023-01-02T14:49:55Z")

</div>

How do you start your instance? Are you by any chance using [JCasc](https://plugins.jenkins.io/configuration-as-code/), in which case it’s expected that any change you make to the UI is lost at restart.

---

<div class="post-metadata">

**Author:** ![Maheshrvm](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maheshrvm](https://community.jenkins.io/u/Maheshrvm)\
**Post date:** [January 3, 2023, 4:22am UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/3 "2023-01-03T04:22:41Z")

</div>

Its managed by Kubernetes not IaC, yes I did some changes in the UI under configure cloud (manage jenkins\>manage nodes&clouds\>configure cloud) with my docker image and kubernetes cluster details and pod templates. But unfortunately those chages were set to default when I restart Jenkins on UI or pod restart also. My requirement is the manual changes which are done in configure cloud should persistent permanantly.

---

<div class="post-metadata">

**Author:** ![PierreBtz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/pierrebtz/32/55_2.png) [@PierreBtz](https://community.jenkins.io/u/PierreBtz)\
**Post date:** [January 3, 2023, 8:51am UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/4 "2023-01-03T08:51:21Z")

</div>

> Its managed by Kubernetes not IaC

I’m not sure I understand this statement. Did you read the link I sent about JCasc? Can you give more details about your setup?

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [January 3, 2023, 7:17pm UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/5 "2023-01-03T19:17:07Z")

</div>

I’ll throw out that helm uses JCasc

> <https://github.com/jenkinsci/helm-charts/blob/d0aa61f5921fb937e6f0a75ee3c1cf1f86cd2b18/charts/jenkins/values.yaml#L313-L323>

and the “defaultConfig” for jcasc in helm creates a kubernetes cloud thingie

> <https://github.com/jenkinsci/helm-charts/blob/d0aa61f5921fb937e6f0a75ee3c1cf1f86cd2b18/charts/jenkins/templates/_helpers.tpl#L141>

I’m assuming you are using helm because it sounds like this scenario, and lots of people install jenkins on k8s via helm

---

<div class="post-metadata">

**Author:** ![Maheshrvm](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maheshrvm](https://community.jenkins.io/u/Maheshrvm)\
**Post date:** [January 6, 2023, 12:39pm UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/6 "2023-01-06T12:39:27Z")

</div>

Yes Halkeye, I am deployed Jenkins on K8s cluster using Helm. My only concern is whenever I have restarted Jenkins/pod whatever the cloud configurations(manage jenkins\>manage node &cloud) which I update manually in the UI gets reset to default. We want this changes permanent so that our pipelines don’t get failed. Thanks.!!

---

<div class="post-metadata">

**Author:** ![PierreBtz](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/pierrebtz/32/55_2.png) [@PierreBtz](https://community.jenkins.io/u/PierreBtz)\
**Post date:** [January 6, 2023, 1:53pm UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/7 "2023-01-06T13:53:27Z")

</div>

As explained by @halkeye and myself, this is the expected behaviour when using Jcasc. You’ll have to update your Jcasc configuration since changes in the UI won’t be persisted.

If you don’t know which properties to modify in your JCasc config:

- perform the change in the UI
- export the configuration as explained in [this document](https://github.com/jenkinsci/configuration-as-code-plugin/blob/33658dd6f000c728d24cbc5e6bd82d770520c985/docs/features/configExport.md)
- by diffing the export and your current configuration you should find what to change

---

<div class="post-metadata">

**Author:** ![Maheshrvm](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maheshrvm](https://community.jenkins.io/u/Maheshrvm)\
**Post date:** [January 6, 2023, 3:48pm UTC](https://community.jenkins.io/t/manage-nodes-cloud/5094/8 "2023-01-06T15:48:21Z")

</div>

Thank you.! I will update Jcasc config.
