The way I do them is install an outlet above the cabinets, horizontally. Do this for every independent group of cabinets.

Wire the outlets to a switch located next to the kitchen light switch.

The 120V puck lights come with a 6' cord installed. Screw the puck light under the cabinet with short screws. drill a small hole through the bottom, back in the corner.

Take the shelves out and cut the back corner of the shelves to allow the cord to run up the corner. Drill another hole through the top.

Install the supplied cord cap on the end of the 6' cord and plug it into the horizontal outlet.

Tev