Deploy with private docker image

To deploy a private docker image it is necessary to create a secret:

kubectl create secret docker-registry myregistrykey --docker-server=https://index.docker.io/v1/ --docker-username=LOGIN --docker-password=PASSWORD --docker-email=EMAIL

And then add the following code in the yml file above the description of the container:

Captura-de-Tela-2018-06-28-a-s-09.25.02

Deploy with private docker image
Compartilhe isto