Let k be a positive real number. The line x + y = k and the circle x^2 + y^2 = 2k + 1 are drawn. Find k so that the line is tangent to the circle.