Home K3S pulls private package from GHCR registry
Post
Cancel

K3S pulls private package from GHCR registry

Prerequisite

Finish K3S installation

Steps

  1. Create and edit file /etc/rancher/k3s/registries.yaml

    1
    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
    
  2. Restart k3s

    1
    
     sudo systemctl restart k3s
    

Reference

This post is licensed under CC BY 4.0 by the author.