> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/2.17/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/upg/2.17/troubleshooting/reconfig.md).

# Reconfiguration at runtime

When you change the User Plane Gateway (UPG) configuration and apply it to a running instance, the following can happen:

- UPG restart - The UPG pod restarts, but it does not trigger any lifecycle actions like deleting the pod or creating a new one.
- UPG recreation - The UPG pod is deleted, and a new pod is created.

A UPG restart does not trigger CNI execution. This means that any changes to the IP address in the Network Attachment Definition (NAD) are not applied to a running UPG pod. To apply the IP changes, you must recreate the UPG pod.

Changes that do not require a UPG restart or recreation:

| Action | Effect | Comment |
| --- | --- | --- |
| Modifying labels | No restart | Changes made using the chart's **label** section |
| Reconfiguring PFCP heartbeats | No restart | Configuration applied using the **pfcpHeartbeatRetries** and **pfcpHeartbeatTimeout** parameters |
| Changing routing table selectors | No restart | The **routingTableSelectors** parameter controls which RoutingTable CRs are applied per UPG instance. |
| Changing routing for Access and Data Network | No restart | You can change **instances.{name}.networking.grx.routes.ipv4** and **instances.{name}.networking.sgi.routes.ipv4** at runtime |
| Changing default routing for NAT pool network | No restart | You can change **instances.{name}.nat.pools.{name}.networking.ipv4.gw** at runtime. |

Changes that affect UPG and require restart or recreation:

| Action | Effect | Comment |
| --- | --- | --- |
| Adding IPFix configuration | UPG restart | New values from the chart are applied in the UPGConfig CR under the **nwi** section. |
| Changing IP address for Access, Control, or Data interfaces (including the NAT pool IPs) | UPG restart | The UPG pod restarts, but is not recreated because changes are applied in VPPConfig, and modifying NAD requires manually deleting the UPG pod. |
| Adding NAT pool | UPG recreation | A new NAT pool is added as a new NWI, changing the network annotation, which deletes the UPG pod and starts it with new interfaces. |
| Modifying **applicationDetection** | UPG restart | Changes to **afterCommands** in VPPConfig cause a restart. |
| Modifying **rateLimiterPPS** | UPG restart | Changes to **afterCommands** in VPPConfig cause a restart.|
| Modifying **additionalNetworks** | UPG recreation | Changes to the network annotation in the UPG deployment trigger a recreation of the UPG pod. |
| Performance tuning (TX placement, Tx/Rx queues, buffer size) | No effect | Changes are made in NAD, but to apply them, you must manually delete the UPG pod. |
