The Kastel has a reasonable entrance fee of 20kn. It is well worth the fee just for the views, especially from the top of the watch tower which you can climb. You can see the whole of Pula.
There was a WWII exhibit in one of the buildings which was interesting enough.
You can also walk around the grounds outside the castle which doesn’t cost anything.