The keto diet may be beneficial for people with diabetes under the medical supervision of a doctor. However, keto is not recommended while you are pregnant, lactating, or trying to conceive. So, skipping the keto diet if you have gestational diabetes is best.