<p>This is my yaml for the adminer:</p>
<pre><code>kind: Service
metadata:
  name: adminer-1598029219
  labels:
    app.kubernetes.io/name: adminer
    helm.sh/chart: adminer-0.1.5
    app.kubernetes.io/instance: adminer-1598029219
    app.kubernetes.io/managed-by: Helm
spec:
  type: NodePort
  ports:
    - port: 8000
      targetPort: http
      protocol: TCP
      name: http
  selector:
    app.kubernetes.io/name: adminer
    app.kubernetes.io/instance: adminer-1598029219
---
# Source: adminer/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: adminer-1598029219
  labels:
    app.kubernetes.io/name: adminer
    helm.sh/chart: adminer-0.1.5
    app.kubernetes.io/instance: adminer-1598029219
    app.kubernetes.io/managed-by: Helm
spec:
  replicas: 1
  selector:
    matchLabels:
      app.kubernetes.io/name: adminer
      app.kubernetes.io/instance: adminer-1598029219
  template:
    metadata:
      labels:
        app.kubernetes.io/name: adminer
        app.kubernetes.io/instance: adminer-1598029219
    spec:
      containers:
        - name: adminer
          image: &quot;dockette/adminer:full&quot;
          imagePullPolicy: IfNotPresent
          ports:
            - name: http
              containerPort: 80
              protocol: TCP
          env:
          - name: ADMINER_PLUGINS
            value:
          - name: ADMINER_DESIGN
            value: pepa-linha
          - name: ADMINER_DEFAULT_SERVER
            value: 
          resources:
            {}
          livenessProbe:
            null
          readinessProbe:
            null
</code></pre>
<p>And this my yaml for th mongoDB</p>
<pre><code>kind: Service
metadata:
 name: mongo
 labels:
   name: mongo
   app: mongo
spec:
 ports:
 - port: 27017
   targetPort: 27017
   name: web
 clusterIP: None
 selector:
   role: mongo

---
apiVersion: apps/v1
kind: StatefulSet
metadata:
 name: web
spec:
 selector:
    matchLabels:
      app: mongo # has to match .spec.template.metadata.labels
 serviceName: &quot;mongo&quot;
 replicas: 3
 template:
   metadata:
     labels:
       app: mongo
   spec:
     terminationGracePeriodSeconds: 10
     containers:
       - name: mongo
         image: mongo
         command:
           - mongod
           - &quot;--replSet&quot;
           - rs0
           - &quot;--smallfiles&quot;
           - &quot;--noprealloc&quot;
         ports:
           - containerPort: 27017
             name: web
         volumeMounts:
           - name: mongo-persistent-storage
             mountPath: /data/db
 volumeClaimTemplates:
 - metadata:
     name: mongo-persistent-storage
     annotations:
       volume.beta.kubernetes.io/storage-class: &quot;fast&quot;
   spec:
     accessModes: [ &quot;ReadWriteOnce&quot; ]
     resources:
       requests:
         storage: 1Gi
</code></pre>
<p>So my problem is that i can't log in into mongod becuse i get this from Adminer :
<strong>Adminer does not support accessing a database without a password</strong>. Is there any simple solution to this problem where i can log into my mongod?
P.S i run kubernetes</p>

Шурбески Христијан
<p>The answer to your question can be found in <a href="https://www.adminer.org/en/password/" rel="nofollow noreferrer">Adminer's documentation</a>:</p>
<blockquote>
<h2>Accessing a database without a password</h2>
<p>Adminer 4.6.3 and newer does not support accessing a database without
a password. The reason is that a forgotten Adminer uploaded on a place
accessible by an attacker could have been used to access a database.
There are these options:</p>
<ol>
<li>Set up the database server to require a password. This is possible with all databases except SQLite and SimpleDB.</li>
<li>Use the  <a href="https://raw.github.com/vrana/adminer/master/plugins/login-password-less.php" rel="nofollow noreferrer"><strong>login-password-less</strong></a>
<a href="https://www.adminer.org/en/plugins/" rel="nofollow noreferrer">plugin</a>  to set up a password
required by Adminer but not passed to the database
(<a href="https://github.com/vrana/adminer/blob/master/adminer/sqlite.php" rel="nofollow noreferrer">example</a>).</li>
<li>Use the  <a href="https://raw.github.com/vrana/adminer/master/plugins/login-ip.php" rel="nofollow noreferrer"><strong>login-ip</strong></a>
<a href="https://www.adminer.org/en/plugins/" rel="nofollow noreferrer">plugin</a>  to check the IP address
and allow an empty password.</li>
<li>Implement the  <code>login</code>  <a href="https://www.adminer.org/en/extension/" rel="nofollow noreferrer">method</a>  to add your custom
authentication.</li>
</ol>
</blockquote>
<p>You may find <a href="https://stackoverflow.com/questions/58009920/how-to-enter-adminer-without-password">this answer</a> helpful as well. It describes the whole process in a great detail.</p>
