If this is a temporary ordination (sometimes also called a traditional ordination), you should be fine with your existing visa.
The duration of your existing visa must not end during your monkhood.
Usually everyone in Thailand is very supportive to ordination, immigration is most likely to be supportive/acceptive/turn a blind eye.
You should make your situation clear to your preceptor (Uppacayo) before ordination, go for a visit to his temple and have a friendly chat.
Most strict forest monastery will not accept a married applicant, however, one may go forth as a novice in that case.
Read all about it: https://www.dhammatalks.org/vinaya/bmc/Section0054.html
You must have a written allowance both of -your wife and -your parents to become a monk.
In case you are contemplating of staying on as a monk indefinitely, i would think twice.
You will not be able to get a Non-I Visa type R(eligious studies) as a married foreigner.