Kottegoda served as Sri Lankan Ambassador to Brazil and thereafter as Sri Lanka Ambassador to Thailand. In April 2019, following the Easter Sunday bombings he was appointed as the Permanent Secretary to the Ministry of Defence by President Sirisena, serving until November 2019 when he was succeeded by Major General Kamal Gunaratne.