Automation resource IP change

We’ve implemented integration through a sidecar with ArgoCD, enabling direct Twingate access to our on-premise K8S clusters. However, encountering an issue when a cluster goes offline and returns, as setting a static IP is not feasible. Upon the cluster’s comeback, ArgoCD faces connectivity challenges because Twingate lacks the updated IP address.

Have any idea how can we automate process to change IP address getting from connector or whetever else ?