Installation of RKE2¶
Installation of Private Registry¶
In this document, Harbor, an open source OCI compliant registry is used.
- Download the offline release package from their Github page.
- Unpack the package with
tar xzvf harbor-offline-installer-version.tgz - Obtain a private and public certificate for HTTPS configuration Create Self Signed SAN Certificate
- Create a folder to store the certificates, and convert the certificate to
certformat for Docker to use# Convert certificate openssl x509 -inform PEM -in yourdomain.crt -out yourdomain.cert # Copy certificates to folder sudo mkdir -p /data/cert cp yourdomain.crt /data/cert cp yourdomain.key /data/cert # Copy certificates to docker sudo mkdir -p /etc/docker/certs.d/yourdomain.com sudo cp yourdomain.cert /etc/docker/certs.d/yourdomain.com sudo cp yourdomain.key /etc/docker/certs.d/yourdomain.com - Restart Docker Engine
sudo systemctl restart docker - Configure Harbor before installation
- Start installation
[!info] Reference - Harbor docs | Configure HTTPS Access to Harbor - Harbor docs | Configure the Harbor YML File
Load RKE2 images to registry¶
- Download the image archive from Github release page. The file name should be something like
rke2-images.linux-amd64.tar.zst - Load the docker images
docker load < rke2-images.linux-amd64.tar.zst - Tag and push the loaded images to the registry