NASA astronaut Peggy Whitson, who holds the U.S. record for most cumulative time in space, is retiring from the agency, effective Friday.