<p>I am newbie to K8s and still testing things. I have got prometheus running outside my cluster. I am using admin creds to hit kube api server to get metrics in to my prometheus which at the moment is working fine.</p>
<p>I want to create another user only to scrape metrics. While searching, i could not find any documentation on creating a user with user id and password.</p>
<p>Also, we are managing our repo in gitlab with pipeline. Is it possible to create user using yaml config instead of kubectl as given in the documentation.</p>
<p>Thanks
Eswar</p>

Ishvar 
<p>According to <a href="https://prometheus.io/docs/guides/basic-auth/" rel="nofollow noreferrer">Prometheus docs</a>:</p>
<blockquote>
<p>Prometheus does not directly support basic authentication (aka &quot;basic auth&quot;) for connections to the Prometheus expression browser and HTTP API. If you'd like to enforce basic auth for those connections, we recommend using Prometheus in conjunction with a reverse proxy and applying authentication at the proxy layer.</p>
</blockquote>
<p>In the link above there is a step-by-step guide in how to set up a nginx reverse proxy in front of Prometheus.</p>
