Enable Auth in kubernetis mode

Hey guys,
Ive mongo deployment under Kubernetes, currently its without authorization, how can i switch it to enable it ?
Thx 8n advance.

Using kubernetes doesn’t change how you do authentication for mongodb. Just follow the tutorials. Of course, you may have to change something in the k8s layer to be authenticated with mongodb. (e.g. add certs)

thank you .
but this is not was my question and not what i mean .
the question is that i want to switch current configuration and add the flag --auth .

A few scenarios are listed on this page:

The most commonly used ones for updating a replica set to enable authentication are below: