minikube deployment of mysql failed... image pull failed .. ubuntu environment

4/25/2020

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

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

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

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

Not able to understand what need to be configured to deploy MySQL in minikube

-- ajoy sinha
deployment
kubernetes
minikube
mysql
proxy

0 Answers