enough-xylophone-4568
08/26/2022, 2:03 PMError response from daemon: Head \"<https://foo.azurecr.io/v2/rancher/rancher-agent/manifests/v2.6.7>\": unauthorized: authentication required, visit <https://aka.ms/acr/authorization> for more information.
I had a look at the source code, and I believe it crashes when trying to pull the share-mnt
process image, which has no imageRegistryAuthConfig
settings section in the nodePlan object.
How can I ensure share-mnt
process is configured with the right ``imageRegistryAuthConfig`` , given that all the other processes have the right credentials attached?cluster
null?<http://nginx.ingress.kubernetes.io/configuration-snippet|nginx.ingress.kubernetes.io/configuration-snippet>: |
location /rancher-version {
return 200 '${rancher_current_version}';
}
And then, in my cloud-init, add the following step before starting the rancher-agent:
# Pull latest Rancher agent
rancher_current_version=$(curl -sfSL ${rancher_url}/rancher-version)
docker pull "${docker_registry_url}/rancher/rancher-agent:$rancher_current_version"