0

I've set up my /etc/rancher/k3s/registries.yaml, how can I confirm it works without doing

k3s kubectl run c1 --image docker.io/perl:5.30
k3s kubectl logs --follow=true c1
sleep 1
k3s kubectl delete pod c1

Is there a more efficient way to test registry authentication for images than having to use k3s run?

Evan Carroll
  • 2,921
  • 6
  • 37
  • 85

1 Answers1

0

The /etc/rancher/k3s/registries.yaml is read by k3s ctr and k3s crictl. You can validate it works properly with a command like this,

sudo k3s crictl pull     docker.io/alpine:3
sudo k3s ctr images pull docker.io/library/alpine:3
Evan Carroll
  • 2,921
  • 6
  • 37
  • 85