Image pull secrets are optional. They can be used if the Docker registry requires authentication. Image pull secrets can be configured in two different ways:
by specifying a user name and password, or
by creating an image pull secret manually and referring to it in the deployment.