The Structure of a Star
A star will take a size and luminosity
which balance the crush of gravity against the pressure which fights it and
holds up the star. The pressure in a normal star is just thermal pressure
from heat.
The heat must constantly be replaced, as the star
radiates energy into space.