Is it possible to use an instance as gateway in a ovn network?

Yes, it is possible to configure a setup you are asking for. Have a look at [SOLVED] Setting up router container to manage all networking Think this is the closed resent discussion to give you an idea what is required.