I have a doubt, to access Yarn, ambari, etc. you need Firefox or you can use other browsers.
I left something out, I have my environment with kerberos. So we have always used firefox obviously configuring the uri
My question is whether it is possible to do this with chrome or another browser.
Yes, you can use other browsers as well like Chrome/Firefox/IE/Safari/Edge ..etc Based on the browsers listed in Supportmatrix for your HDP/Ambari stack:
In Support matrix just click on your desired HDP/Ambari ..etc product version to see what all browsers are supported with it and then accordingly you can configure the kerberos/spnego settings for it.