Prerequisite
Finish K3S installation
Steps
-
Create and edit file
/etc/rancher/k3s/registries.yaml1 2 3 4 5 6 7 8 9
mirrors: ghcr: endpoint: - "https://ghcr.io" configs: "ghcr.io": auth: username: $YOUR_USERNAME password: $YOUR_PRIVATE_ACCESS_TOKEN
-
Restart k3s
1
sudo systemctl restart k3s