Rising to the post of Dalavayi ( commander-in-chief ) to Krishnaraja Wodeyar II , he came to dominate the titular monarch and the Mysore government .
Rising to the post of dalwai , or commander-in-chief to Krishnaraja Wodeyar II , he came to dominate the titular monarch and the Mysore government , and eventually seized control of all of the reins of power .