Additional information#
This section provides additional information on creating a secret for authorization in the Docker registry.
Create Docker registry authentication secret#
To download images with LUNA Vinder Module services you need to authorize in the Docker registry.
Create a credentials file, such as vlabs-credentials.json, containing the login and password:
{
"auths": {
"dockerhub.visionlabs.ru": {
"username": "your_username",
"password": "your_password"
}
}
}
Grant Kubernetes access to the registry with Docker images.
kubectl create secret generic my-dockerhub-secret --from-file=.dockerconfigjson=vlabs-credentials.json --type=kubernetes.io/dockerconfigjson
If you have previously authorized via the docker login command, you can grant Kubernetes access using the following command:
kubectl create secret generic my-dockerhub-secret --from-file=.dockerconfigjson=$HOME/.docker/config.json --type=kubernetes.io/dockerconfigjson
The secret can be specified during Helm chart setting.