Type2 is primarily due to processed foods. Avoid. Simple.
The reason one's pancreas can no longer do its job is microscopic fat cells in the organs and muscles, mostly due to animal fat but also vegetable oils (fat) in one's diet.
Look up lipotoxicity and diabetes.
Blood glucose levels that stay high is merely the symptom of a dysfunctional pancreas that can no longer cope.