From 1b55ead16e8f3c4caa2c8f213d0717bd7eedde88 Mon Sep 17 00:00:00 2001 From: stefanprodan Date: Fri, 4 Sep 2020 15:10:42 +0300 Subject: [PATCH] Add ARM64 to install docs and script --- docs/get-started/index.md | 2 +- docs/guides/installation.md | 7 ++++++- install/gotk.sh | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/get-started/index.md b/docs/get-started/index.md index ea30e5a4..6c6a06f6 100644 --- a/docs/get-started/index.md +++ b/docs/get-started/index.md @@ -26,7 +26,7 @@ curl -s https://toolkit.fluxcd.io/install.sh | sudo bash ``` The install script downloads the gotk binary to `/usr/local/bin`. -Binaries for macOS and Linux AMD64 are available for download on the +Binaries for macOS and Linux AMD64/ARM64 are available for download on the [release page](https://github.com/fluxcd/toolkit/releases). To configure your shell to load gotk completions add to your bash profile: diff --git a/docs/guides/installation.md b/docs/guides/installation.md index 0bf291ce..0db562a9 100644 --- a/docs/guides/installation.md +++ b/docs/guides/installation.md @@ -15,7 +15,7 @@ curl -s https://toolkit.fluxcd.io/install.sh | sudo bash ``` The install script downloads the gotk binary to `/usr/local/bin`. -Binaries for macOS and Linux AMD64 are available for download on the +Binaries for macOS and Linux AMD64/ARM64 are available for download on the [release page](https://github.com/fluxcd/toolkit/releases). Verify that your cluster satisfies the prerequisites with: @@ -47,6 +47,10 @@ gotk bootstrap \ --version=latest ``` +!!! hint "ARM64" + When deploying to a Kubernetes cluster with ARM 64-bit architecture, + you can use `--arch=arm64` to pull the linux/arm64 toolkit container images. + If you wish to install a specific version, use the toolkit [release tag](https://github.com/fluxcd/toolkit/releases) e.g. `--version=v0.0.14`. @@ -169,6 +173,7 @@ Generate the toolkit manifests with: ```sh gotk install --version=latest \ + --arch=amd64 \ # on ARM64/AARCH64 clusters use --arch=arm64 --export > ./my-cluster/gitops-system/toolkit-components.yaml ``` diff --git a/install/gotk.sh b/install/gotk.sh index 20fe4420..5d99d5e1 100755 --- a/install/gotk.sh +++ b/install/gotk.sh @@ -42,6 +42,9 @@ setup_verify_arch() { ARCH=$(uname -m) fi case ${ARCH} in + arm64) + ARCH=arm64 + ;; amd64) ARCH=amd64 ;;