Welcome to forums
As far as I know it will not be compatible with your K-30 - unless it is M42 mount - so then you would need to use an adapter M42 -> P/K .
Personally I would advise you against this purchase - the lens will not offer any or little of an improvement over your modern Pentax lens. If you are into macro photography - get yourself one of those neat macro lenses from old days OR cheaply get some macro tubes and a fast prime lens - ( 135mm will give you best working distance).
There are plenty of other compatible lenses for your K-30 - why would you want to go through hassle of adapting some old exotic one ?--manntax