<p>So I installed <code>kube-prometheus-stack</code> from <a href="//dev.to/kaitoii11/deploy-prometheus-monitoring-stack-to-kubernetes-with-a-single-helm-chart-2fbd" rel="nofollow noreferrer">this tutorial</a>:</p>
<pre><code>helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
kubectl create ns monitoring
helm install prometheus prometheus-community/kube-prometheus-stack -n monitoring
kubectl get all -n monitoring
</code></pre>
<p>then I copied from the git <a href="//github.com/prometheus-community/helm-charts" rel="nofollow noreferrer">prometheus-community/helm-charts</a>, modify the <code>values.yaml</code> to suit my needs (alertmanager stuff), then run this command to apply the update:</p>
<pre><code>helm dependency update -n monitoring kube-prometheus-stack/ # one time
helm upgrade prometheus -n monitoring kube-prometheus-stack/
</code></pre>
<p>Now I need the grafana to work with shared password, I created a <code>basic-auth</code> secret an ingress:</p>
<pre><code>apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: monitoring-ingress
  namespace: monitoring
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-prod
    nginx.ingress.kubernetes.io/auth-type: basic
    nginx.ingress.kubernetes.io/auth-secret: basic-auth
    nginx.ingress.kubernetes.io/auth-realm: &quot;Authentication Required&quot;
spec:
  rules:
    - host: monitor.blabla.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: prometheus-grafana.monitoring
                port:
                  number: 80
  tls:
    - hosts:
        - monitor.blabla.com
      secretName: monitor.blabla.com-cert
</code></pre>
<p>these works fine, but the problem is, I need to change grafana's internal configuration (to make it <a href="//stackoverflow.com/questions/33111835/">passwordless</a>), what's the correct/proper way to do this?</p>
<p><a href="https://i.stack.imgur.com/BFQML.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BFQML.png" alt="the chart directory structure" /></a></p>

Kokizzu
<p>I'm have deployed version 7.3.5 of Grafana, and I only could achieve this by removing the login screen completely.</p>
<p>In the <code>values.yaml</code> of your Grafana chart look for the <code>grafana.ini</code> level. Then append the following config value pairs:</p>
<pre><code>grafana.ini:
  users:
    viewers_can_edit: false
  auth:
    disable_login_form: false
    disable_signout_menu: false
  auth.anonymous:
    enabled: true
    org_role: Viewer
</code></pre>
<p>Source: <a href="https://github.com/helm/charts/issues/10622#issuecomment-454397952" rel="nofollow noreferrer">https://github.com/helm/charts/issues/10622#issuecomment-454397952</a></p>
