I would really encourage you to get your bike fit setup properly. Not sure if you where you purchased your store, but most good LBS’s will do a good job.
Once you get a good fit, then there are other things you can do to fine tune to limit your knee pain.