Use relays in series to achieve 10kV voltage withstanding
There are quite a few around from speciality vendors such as HV Relays

They use a vacuum to ensure the air doesn't break down between the contacts.
[10kv relay][2]