A top leak is good news more often than a bottom leak. The parts up there, meaning the connections, unions and relief valve, are replaceable, and the tank shell is not usually the culprit.
Where the water starts
The top of a tank carries the inlet, the outlet and the union at each of them. On a hillside install those fittings are often dielectric unions, put there to keep copper and steel from corroding each other, and the seal inside them is what gives way first. Water then runs down the side of the tank and pools at the bottom, which is why the call is sometimes placed as a bottom leak.
The repair is a fitting, not a heater. What makes it a job rather than a five-minute one is reaching it: on a platform or under a low ceiling the top of the unit can be closer to the structure than a wrench wants, and the fitting has to be held while it is undone.
The relief valve
A temperature-and-pressure relief valve that weeps or discharges is doing its job or failing at it, and the difference matters. A worn seat weeps a little; a valve that opens under pressure is reporting a condition — thermal expansion, excess pressure or an overheating tank.
Capping a weeping relief valve is dangerous. The valve is the last safety device on the tank, and the correct response is to find out why it is opening. On a closed plumbing system, an expansion tank is often the missing piece.
Condensation, not leakage
Cold water entering a warm, humid garage condenses on the pipe and fittings. The water is clear, it appears on warm days or after heavy use, and it does not correlate with pressure. Drying the area and watching it for a day separates condensation from a real leak, and it saves replacing a connection that was never leaking.
When the shell is the source
A fitting that has corroded through is one thing; metal that has gone at the tank's top head is another. The test is simple and physical: the area is cleaned and dried, and the tank surface itself is watched rather than the joint. Water seeping through the head means the vessel is finished, and on a hillside property the replacement is then planned around the platform, the vent and the pan rather than treated as a like-for-like swap.
The visit, end to end
The inlet is closed, the top is opened up and each union is inspected, with the failed one replaced and the others tested under pressure. The relief valve is exercised and its discharge tracked to where it actually ends. If the valve lifted on its own, the pressure is measured before anything is sold as a cure: an expansion tank or a regulator adjustment is the fix, and a new valve on its own simply moves the problem to the next hot cycle.