How to add basic user/pass authentication to elastic.yaml

If you are using the Elastic provided K8s operator ("ECK") as it appears you are, then you should have authentication enabled by default.

What response do you get at that endpoint?