<p>I am trying to deploy a mysql in minikube cluster. but it is failing because it failed to pull image from dockerhub registry. </p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: mysql
spec:
  selector:
    matchLabels:
      app: mysql
  template:
    metadata:
      labels:
        app: mysql
    spec:
      containers:
      - image: mysql:latest
        name: mysql
</code></pre>

<p>But surprisingly, when I am trying to deploy my own developed image in same minikube it is deploying properly</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: xxx
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: xxx
      version: 'v1'
  template:
    metadata:
      labels:
        app: xxx
        version: 'v1'
    spec:
      containers:
        - name: opaapp
          image: registry.hub.docker.com/***/xxx:latest

</code></pre>

<p>Not able to understand what need to be configured to deploy MySQL in minikube</p>

ajoy sinha
<p>assuming you are using latest version of minikube, and skipping the network related errors, I tried to deploy your manifest in minikube v1.11.0 and I see the following:</p>

<pre><code>2020-06-05 11:48:44+00:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified
    You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
</code></pre>

<p>If you change your yml file to:</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: mysql
spec:
  selector:
    matchLabels:
      app: mysql
  template:
    metadata:
      labels:
        app: mysql
    spec:
      containers:
      - image: mysql:latest
        name: mysql
        env:
        - name: MYSQL_ALLOW_EMPTY_PASSWORD
          value: "True"
</code></pre>

<p>you should good to go.</p>
