curl -sfL https://get.rke2.io | INSTALL_RKE2_METHOD=rpm sh -
sudo cp -f /usr/share/rke2/rke2-cis-sysctl.conf /etc/sysctl.d/60-rke2-cis.conf
mkdir -p /etc/rancher/rke2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| New-Item -ItemType Directory -Path "$Env:ProgramFiles\containerd" -Force > $null | |
| curl.exe -L https://github.com/luthermonson/containerd/releases/download/win-bins/containerd-shim-runhcs-v1.exe -o "$Env:ProgramFiles\containerd\containerd-shim-runhcs-v1.exe" | |
| curl.exe -L https://github.com/luthermonson/containerd/releases/download/win-bins/containerd.exe -o "$Env:ProgramFiles\containerd\containerd.exe" | |
| curl.exe -L https://github.com/luthermonson/containerd/releases/download/win-bins/ctr.exe -o "$Env:ProgramFiles\containerd\ctr.exe" | |
| # Set containerd config.toml | |
| $ProcessInfo = New-Object System.Diagnostics.ProcessStartInfo | |
| $ProcessInfo.FileName = "$Env:ProgramFiles\containerd\containerd.exe" | |
| $ProcessInfo.RedirectStandardError = $true | |
| $ProcessInfo.RedirectStandardOutput = $true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| PUBLIC_IP=$(curl ifconfig.io) | |
| # export INSTALL_RKE2_VERSION="v1.20.5+rke2r1" | |
| curl -sfL https://get.rke2.io | sh - | |
| mkdir -p /etc/rancher/rke2 | |
| cat > /etc/rancher/rke2/config.yaml <<EOF | |
| write-kubeconfig-mode: "0640" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| PUBLIC_IP=$(curl ifconfig.io) | |
| echo "Installing K3S" | |
| # export INSTALL_K3S_VERSION="v1.19.5+k3s2" | |
| curl -sfL https://get.k3s.io | sh -s - --tls-san ${PUBLIC_IP} | |
| echo "Downlading cert-manager CRDs" | |
| wget -q -P /var/lib/rancher/k3s/server/manifests/ https://github.com/jetstack/cert-manager/releases/download/v1.5.1/cert-manager.crds.yaml |
I wanted to iterate on some images and have them available to K3s immediately, much like the Docker Desktop experience.
I also wanted to use docker buildx bake for this, but buildctl and nerdctl build should work fine too. You can omit Docker components if you don't want Buildx.
- Ubuntu 22.04
- K3s latest (v1.24.2+k3s1)
- BuildKit v0.10.3
- Docker Engine 20.10.17 (required for Buildx)
- Docker Buildx master (required for new 'remote' driver)
- Nerdctl 0.21.0
OlderNewer