Custom Operator

I have a table in a database that gets frequently updated. The table holds host/port information for Egressing. I want to create a custom operator or a custom controller to sync this information over to Kubernetes, specifically Istio ServiceEntry’s.

Is a custom operator the way to go about this? How can I keep this table and kubernetes in sync – through constant polling?