# Nodeport conflicts

**URL:** https://forums.suse.com/t/nodeport-conflicts/44451
**Category:** k3s, k3OS, and k3d
**Created:** [November 6, 2024, 2:53pm UTC](https://forums.suse.com/t/nodeport-conflicts/44451 "2024-11-06T14:53:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mehiatt](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/mehiatt/32/11500_2.png) [@mehiatt](https://forums.suse.com/u/mehiatt)
#### Post date: [November 6, 2024, 2:53pm UTC](https://forums.suse.com/t/nodeport-conflicts/44451/1 "2024-11-06T14:53:42Z")

</div>

We have a k3s pod that is a daemonset with a rolling update. It has host network connection though a nodeport (443). However when we go to update, it conflicts because the old pod is still on 443 and the new pod needs it.

We have looked around and found we could possibly use a lifecycle prestop where it sleeps the first container, however that would result in downtime. What other ways are there to handle this?

---

<div class="post-metadata">

### Author: ![bpedersen2](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bpedersen2/32/9899_2.png) [@bpedersen2](https://forums.suse.com/u/bpedersen2)
#### Post date: [November 7, 2024, 10:27am UTC](https://forums.suse.com/t/nodeport-conflicts/44451/2 "2024-11-07T10:27:18Z")

</div>

The best bet would be not to use hostport, but instead use a LoadBalancer ( and have suitable LB available, k3s by default uses the klipper loadbalancer)
