Bananas and cranberries or cranberry juice can be a good addition to the diet during a UTI attack. While bananas are high in potassium and can potentially aggravate bladder irritation, the overall impact on UTIs is positive. To maintain good urinary health, it's crucial to practice good hygiene and stay well hydrated.