That is small program I create just for test and fun. It show how to create dome to some bar(if you need). One way, is to use flat end mill, but then the steps need to be really small to get some surface quality. (there in my channel should be one)
Here, is used ball end tool. The steps between every layer are angle of 1°.
Hope that somehow help you... enjoy!