Q.What Is Killing My Basil Plant?
My potted basil is turning yellow, and has what I think are eggs on the stems. I cannot see any bugs, so I’m not sure what they are, but they are hard and brown and almost stuck to the stems. Can anyone please help me identify what is wrong with my plant and advise how to fix it? Also, is the basil still safe to eat at this time? Thank you!!

Certified GKH Gardening Expert
It is hard to say what kind of insect that is from the photo. Many insecticides will take care of mild infestations such as this. I don't think that this is the main issue. Here is an article that will help:
https://www.gardeningknowhow.com/plant-problems/pests/pesticides
This appears to be overcrowding related. There should be one plant per pot, and basil will prefer a larger pot, since they have the capacity to become shrubs. For longevity, I would go with a 2 gallon container, at least.
This article will help you to care for basil:
https://www.gardeningknowhow.com/edible/herbs/basil/how-to-grow-basil-plants.htm