Keeping your small dog out of the kitchen, especially while you are cooking or entertaining, can be important not only for his safety but also for your sanity. Some dog owners don't want their dogs in the kitchen at all. Small dogs, especially, push boundaries because they are so little and can easily run between your feet to get what they would like. Keeping your small dog out of your kitchen is easy to train with consistency and repetition. Keep your little guy entertained in other rooms and let him know when it's appropriate to be in the kitchen, if ever, or what he can do while you are busy in the kitchen instead of being under your feet.
Keeping your small dog out of the kitchen will require you to set boundaries with him and stick to those boundaries every time you are in the kitchen. Also giving your dog permission to watch you while you're in the kitchen from a safe place will be important in keeping your small dog from becoming anxious and whining while you're in the kitchen and he's not allowed to be with you. Giving your dog rewards in the form of treats will keep him motivated to stay just outside of the kitchen. Eventually, your little guy will find something different to do as he realizes watching you from a boundary line is not nearly as fun as playing with a toy or having a treat somewhere else.
If you clicker train your dog for other training, be prepared to train him kitchen boundaries with a clicker and lots of treats. If possible, you may want to have another member of the household show him other things he can be doing while you're in the kitchen. If you don't ever want your little dog in the kitchen, you will need to feed him elsewhere. Try not to break the rules for his meal times but not for yours. Come to your training sessions prepared with lots of rewards and ready to redirect and repeat commands.