Your military retired pay is exempt from New York State, New York City and Yonkers income taxes.
There is nothing to apply for. Subtract your military retired pay from the income you report on your New York State return. If New York tax was withheld from it by mistake, file a return to claim the refund.
Your Form 1099-R showing the retired pay, kept with your tax records.