We have a lp water heater.have replaced the temperature control valve & thermocouple.
The burner comes on & stays lit for a few minutes then goes out. Then if turn up the temperature it will run again for a few minutes & then kick back off. Pilot light stays lit and never goes out.