My knees hurt

Hey I have been training for a half marathon since February and have slowly increased my mileage. I have changed my shoes and insoles cause my ankles were hurting but now my knees hurt. Was wondering if you had any suggestions on what I can do?