> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/upg/3.2/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/3.2/troubleshooting/reconfig.md).

# Reconfiguration at runtime

When you change the User Plane Gateway (UPG) configuration and apply it to a running instance, one of the following scenarios occurs:

- **UPG runtime reconfiguration:** The UPG applies the new configuration at runtime; no UPG pod recreation is needed.
- **UPG recreation:** The UPG pod is automatically deleted, and a new pod is created.
- **UPG not ready:** The UPG pod must be manually deleted to apply the new configuration.

### Changes that do not require UPG recreation

The following changes are applied at runtime without recreating the UPG pod:

| Action | Effect | Comment |
| --- | --- | --- |
| Modifying labels | No restart | Changes are made using the `UPGDeployment` CR's **spec.labels** section. |
| Reconfiguring PFCP heartbeats | No restart | Configuration is applied using the **spec.pfcpHeartbeatRetries** and **spec.pfcpHeartbeatTimeout** parameters. |
| Changing routing table selectors | No restart | The **spec.routingTableSelectors** parameter controls which `RoutingTable` CRs are applied per UPG instance. |
| Changing routing for Access and Data Networks | No restart | You can change **spec.instances.{name}.networking.grx.routes.ipv4** and **spec.instances.{name}.networking.sgi.routes.ipv4** at runtime. |
| Changing default routing for NAT pool networks | No restart | You can change **spec.instances.{name}.nat.pools.{name}.networking.ipv4.gw** at runtime. |
| Adding IPFix configuration | No restart | New values from the `UPGDeployment` CR are applied in the `UPGConfig` CR under the **spec.nwi** section. |
| Performance tuning (TX placement, Tx/Rx queues, buffer size) | No restart | Changes are made in the `VPPInterface` and applied to the running UPG without needing a restart. |
| Modifying **spec.applicationDetection** | No restart | This creates `UPGApplicationSet` objects and adds routing table entries at runtime. |
| Changing interface MTU | No restart | New MTU values are applied to the `VPPInterface` and configured at runtime. |
| Changing interface FPPNetwork | No restart | A new FPPNetwork is applied to the `VPPInterface` and configured at runtime. |

### Changes that require manual UPG recreation

The following changes take effect only after you manually delete the UPG pod:

| Action | Effect | Comment |
| --- | --- | --- |
| Changing the IP address or interface name for Access, Control, or Data interfaces (including NAT pool IPs) | UPG not ready | Changes are applied to the `VPPInterface` and `VPPConfig` objects (**spec.afterCommands**). A manual restart (deletion) of the UPG pod is required for them to take effect. |
| Adding a NAT pool | UPG not ready | A new NAT pool is added as a new NWI in `UPGConfig`, and NAT configuration entries are inserted into the `VPPConfig` **spec.afterCommands**. A manual restart of the UPG pod is required. |
| Modifying **spec.instances.{name}.additionalConfig** | UPG not ready | The **additionalConfig** is inserted into **spec.afterCommands** in `VPPConfig`, which requires a manual restart of the UPG pod. |
| Modifying **spec.rateLimiterPPS** | UPG not ready | Introduces changes to **spec.afterCommands** in the `VPPConfig` object, which requires a manual restart of the UPG pod. |
| Changing **spec.arpCacheLongevity** | UPG not ready | Introduces changes to **spec.afterCommands** in the `VPPConfig` object, which requires a manual restart of the UPG pod. |
| Changing **spec.pfcpFIFOSize** | UPG not ready | Introduces changes to **spec.afterCommands** in the `VPPConfig` object, which requires a manual restart of the UPG pod. |

### Changes that trigger automatic UPG recreation

The following changes recreate the UPG pod automatically:

| Action | Effect | Comment |
| --- | --- | --- |
| Changing **spec.affinity** | UPG recreation | May automatically reschedule the pod to another node. This changes the Kubernetes `StatefulSet` object. |
| Changing **spec.buffersPerNuma** | UPG recreation | Results in UPG pod environment variable changes, which automatically restarts the pod. |
| Changing **spec.defaultDataSize** | UPG recreation | Results in UPG pod environment variable changes, which automatically restarts the pod. |
| Changing **spec.disableProbes** | UPG recreation | Introduces changes to the UPG pod definition, which automatically restarts the pod. |
| Changing **spec.enableHugepagesAllocation** | UPG recreation | Results in UPG pod environment variable changes, which automatically restarts the pod. |
| Changing **spec.heapsize** | UPG recreation | Results in UPG pod environment variable changes, which automatically restarts the pod. |
| Changing **spec.logLevel** | UPG recreation | Results in UPG pod environment variable changes, which automatically restarts the pod. |
| Changing **spec.operatorName** | UPG recreation | Results in the UPG pod being removed and recreated by the new VPP Operator. |
| Changing **spec.resources** | UPG recreation | Introduces changes to the UPG pod definition, which automatically restarts the pod. |
| Changing **spec.statSegSize** | UPG recreation | Results in UPG pod environment variable changes, which automatically restarts the pod. |
| Changing **spec.terminationGracePeriodSeconds** | UPG recreation | Introduces changes to the UPG pod definition, which automatically restarts the pod. |
| Changing **spec.tolerations** | UPG recreation | May automatically reschedule the pod to another node. This changes the Kubernetes `StatefulSet` object. |
| Changing **spec.vpp** | UPG recreation | Modifying the VPP configuration alters the pod declaration, which automatically restarts the pod. |
