Konvoy customers can configure their cluster to authenticate with registries (such as Docker Hub), and add additional registries, by defining each in the
.spec.imageRegistries list in the
cluster.yaml file. For example, to add credentials for Docker Hub, set the options in your
cluster.yaml as follows:
kind: ClusterConfiguration apiVersion: konvoy.mesosphere.io/v1beta2 spec: imageRegistries: - server: https://registry-1.docker.io username: "<username>" password: "<password>"
- Apply the changes to your cluster. Enter the following command:
- Confirm the changes made to the cluster. Enter the following command to check the contents of the
$ cat /etc/containerd/config.toml ... [plugins."io.containerd.grpc.v1.cri".registry] [plugins."io.containerd.grpc.v1.cri".registry.configs] [plugins."io.containerd.grpc.v1.cri".registry.configs."registry-1.docker.io".auth] username = "<username>" password = "<password>" ...
For more information on configuring
imageRegistries in the
cluster.yaml, please refer to the following documentation: https://docs.d2iq.com/dkp/konvoy/1.5/reference/cluster-configuration/v1beta2/