title: dockerhub in kubernetes give unauthorized: incorrect username or password with right credentials
body: <p>I'm trying to pull a private image from docker hub and every time I get the error "ImagePullBackOff" using describe on the pods I see the error "unauthorized: incorrect username or password", I created the secret in the cluster using the following guide: <a href="https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/</a> using the cli method with the correct credentials (I checked and I can login on the website with these one) and this is my yaml file.</p>
  
  <pre><code>apiVersion: apps/v1
  kind: Deployment
  metadata:
    name: app-typescript
    labels:
      app: app-typescript
  spec:
    selector:
        matchLabels:
          app: app-typescript
    replicas: 1
    minReadySeconds: 15
    strategy:
      type: RollingUpdate    
      rollingUpdate:
        maxUnavailable: 1                                   
        maxSurge: 1 
    template:
      metadata:
        labels:
          app: app-typescript
      spec:
        containers:
        - name: api
          image: dockerhuborg/api:latest
          imagePullPolicy: Always
          env:
            - name: "ENV_TYPE"
              value: "production"
            - name: "NODE_ENV"
              value: "production"
            - name: "MONGODB_URI"
              value: "mongodb://mongo-mongodb/db"
          ports:
          - containerPort: 4000
        imagePullSecrets:
        - name: regcred
  </code></pre>