Chronic kidney disease (CKD) is a gradual and usually permanent loss of kidney function over time. This happens gradually over time, usually months to years. Anemia develops when the kidneys fail to produce enough erythropoietin, EPO, the hormone that directs the bones to make red blood cells.