basically two ways, one drill the hole as required insert spring and ball the in a press deform the metal around the open end of the hole so it all holds together.
Two from the opposite side drill through with an undersized drill for the ball then drill again at the right size, but don't go right through, insert ball and spring drive a tight fitting tapered plug in and dress it off. More expensive, but a better job.