# How is logistic regression related to Bernoulli Distribution?

In GLM, it seems logistic regression is related to Bernoulli Distribution. How are they related mathematically?

$$y \mid X \sim Bernoulli \left( p = \frac{1}{1 + e^{-(\beta_0 + \beta_1 x_1 + \cdots + \beta_k x_k)}} \right)$$