As Jerry stated, you should use the LM317T.
If you are pushing it at higher current, you will need a heat-sink for the regulator, using the (T) case you have a hole to bolt the H/S on, with the (K), you will have to use thermal adhesive.
Plus the (K) takes up a lot more room.