"panel lamps" or "panel mount indicator lamps" available from: industrial engineering supplies, electrician supplies, boat, rv or automotive supplies, generic online marketplace.
They usually had a lens that unscrews from the from the front giving access to an miniture edison screw, subminiature edison screw or miniature BC incandescent lamp.
Modern versions which are LED illuminated and do not have easily removable lenses, and also look slightly different
Apparenly you can buy a kitset to build the BIG RAT studio set shown. I have not looked into the details if the lamps work etc.
10mm LEDs are also a thing, and if you don't need too much period accuracy may be a relatively inexpensive option
The second picture seems to show bare round-end lamps that have been painted, possibly by being dipped in tinted lacquer.