Major Version Upgrade
After having upgraded your sharded cluster using MongoDB documentation, you can proceed to deploy a new Mongos K8s application (see docs) and relate it with the config-server as you have done as part of the tutorial.
Please note that Mongos 6 and MongoDB 8 are not compatible so you have to update them separately.