Non-equilibrium thermodynamics of the gas kinetic boundary value problem