I'm in a position where it will take a while to train someone to do my job
I'm going to not advertise that I will retire before taking the jab, and when the time comes say "No. And if you want me to answer questions after I'm gone, I better get a good severance package. I will answer your calls for the duration of my severance".
Or you could set up a consulting business and charge them for the advice.