(NYPOST) — A Queens gym teacher who blew the whistle on a ​dirty fitness room has been bounced to the rubber room.

Peter Maliarakis, a P.E. teacher at William Cullen Bryant HS in Astoria, was slapped with 12 charges of incompetence and insubordination last week and ordered to sit in a student’s desk in the main office.

Among the charges, he is accused of ​ refusing to bring his class to an assigned fitness room in September 2013.

He filed a complaint with the state Public Employee Safety and Health Bureau​,​ alleging filthy conditions in the basement area adjacent to a bathroom that caused such a stench “students put shirts over their noses,” he said.

Note: Read our discussion guidelines before commenting.