On a keto diet, a person eats foods like meat, fish, eggs, nuts, healthy fats, and nonstarchy green vegetables. Foods like legumes, starchy vegetables, whole grains, and some fruits are minimized or eliminated.