The best way to get rid of ants permanently in your kitchen is to find the source of the problem and eliminate it. If you have an ant problem in your kitchen, chances are there is a food source that they are attracted to.
Once you find the food source, you can either remove it or seal it off so that the ants can't get to it. You can also try using ant baits or traps to kill the ants.