Best practices to configure indexSet passwords for kibana and other users before elasticsearch starts (k8s)

Hello,
Please let me know the preferred options to set passwords for elastic users (kibana user, etc) before elasticsearch starts?

I noticed that we can use k8s secrets, what other options do we have? Do we have env vars like ELASTIC_USERNAME/ELASTIC_PASSWORD for other users listed below?

Enter password for [elastic]: 
Reenter password for [elastic]: 
Enter password for [apm_system]: 
Reenter password for [apm_system]: 
Enter password for [kibana]: 
Reenter password for [kibana]: 
Enter password for [logstash_system]: 
Reenter password for [logstash_system]: 
Enter password for [beats_system]: 
Reenter password for [beats_system]: 
Enter password for [remote_monitoring_user]: 
Reenter password for [remote_monitoring_user]: 

Thank you in advance!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.