<p>Is this the right method to configure a docker login on kubernetes nodes or I need to enter on all nodes and make a docker login ?</p>
<pre><code>ubuntu@anth-mgt-wksadmin:~/apache$ export DOCKER_REGISTRY_SERVER=hub.docker.com
ubuntu@anth-mgt-wksadmin:~/apache$ export DOCKER_USER=xxxxx
ubuntu@anth-mgt-wksadmin:~/apache$  export DOCKER_PASSWORD=mypassword
ubuntu@anth-mgt-wksadmin:~/apache$  export DOCKER_EMAIL=andrea.ciuffoli@xxxx.com
.
ubuntu@anth-mgt-wksadmin:~/apache$  kubectl create secret docker-registry cfcr  --docker-server=$DOCKER_REGISTRY_SERVER --docker-username=$DOCKER_USER --docker-password=$DOCKER_PASSWORD --docker-email=$DOCKER_EMAIL
secret/cfcr created
</code></pre>
<p>and inside the yaml add these 3 lines:</p>
<pre><code>...
livenessProbe:
    httpGet:
      path: /
          port: 80
        initialDelaySeconds: 5
  imagePullSecrets:
  - name: cfcr
</code></pre>

andrea ciuffoli
<p>risolto con:</p>
<pre><code>docker login
WARNING! Your password will be stored unencrypted in /home/ubuntu/.docker/config.json.


kubectl create secret generic cfcr  --from-file=.dockerconfigjson=/home/ubuntu/.docker/config.json  --type=kubernetes.io/dockerconfigjson
</code></pre>
<p>and the same lines in the .yaml</p>
