Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin K3s to v1.25.7+k3s1 instead stable channel #40

Merged
merged 3 commits into from
Mar 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/build-ami.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
paths:
- packer/**
- .github/workflows/build-ami.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }} # Cancel in-progress jobs or runs for current workflow
cancel-in-progress: true
permissions:
contents: read
id-token: write
Expand Down
11 changes: 6 additions & 5 deletions packer/setup_root.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ set -o pipefail
export DEBIAN_FRONTEND=noninteractive

# Install K3s - script uploaded with packer
INSTALL_K3S_SKIP_START="true" INSTALL_K3S_EXEC="--disable=traefik" K3S_KUBECONFIG_MODE="644" sh /tmp/k3s.sh -
K3S_VERSION=v1.25.7+k3s1
INSTALL_K3S_SKIP_START="true" INSTALL_K3S_EXEC="--disable=traefik" K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION=${K3S_VERSION} sh /tmp/k3s.sh -
echo KUBECONFIG="/etc/rancher/k3s/k3s.yaml" >> /etc/environment

# Install k9s
K9S_VERSION=v0.26.7
K9S_VERSION=v0.27.3
cd /tmp
curl --silent -L https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_x86_64.tar.gz -o /tmp/k9s_Linux_x86_64.tar.gz
echo "f774bb75045e361e17a4f267491c5ec66f41db7bffd996859ffb1465420af249 k9s_Linux_x86_64.tar.gz" > /tmp/k9s.sha256
curl --silent -L https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_amd64.tar.gz -o /tmp/k9s_Linux_amd64.tar.gz
echo "b0eb5fb0decedbee5b6bd415f72af8ce6135ffb8128f9709bc7adcd5cbfa690b k9s_Linux_amd64.tar.gz" > /tmp/k9s.sha256
sha256sum -c /tmp/k9s.sha256
tar -zxvf /tmp/k9s_Linux_x86_64.tar.gz -C /tmp
tar -zxvf /tmp/k9s_Linux_amd64.tar.gz -C /tmp
mv /tmp/k9s /usr/local/bin/
cd /root

Expand Down