For words terminating in "t" and "d", which make the sounds /t/ and /d/, "-ed" is pronounced /id/.
For words terminating in letters with unvoiced sound (/k/, /t/, /f/, /s/, /S/, /tS/, /p/ - notice that these refer to the sounds, not the forms of the letters), for example k, p, f, s, etc. ...