Skip to content

Commit

Permalink
docs(*): added info about arm and installer detect arch (kumahq#829)
Browse files Browse the repository at this point in the history
Signed-off-by: Łukasz Dziedziak <[email protected]>
  • Loading branch information
lukidzi authored May 27, 2022
1 parent 4b21bfa commit 53ac9c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
14 changes: 13 additions & 1 deletion docs/.vuepress/public/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
DIR="$( cd "$( dirname "$0" )" >/dev/null 2>&1 && pwd )"

: "${VERSION:=}"
: "${ARCH:=amd64}"
: "${ARCH:=}"

PRODUCT_NAME=Kuma
LATEST_VERSION=https://kuma.io/latest_version
Expand Down Expand Up @@ -67,6 +67,18 @@ if [ -z "$DISTRO" ]; then
exit 1
fi

DETECTED_ARCH=`uname -m`
if [ "$ARCH" = "" ]; then
if [ "$DETECTED_ARCH" = "x86_64" ]; then
ARCH=amd64
elif [ "$DETECTED_ARCH" = "arm64" ] || [ "$DETECTED_ARCH" = "aarch64" ] || [ "$DETECTED_ARCH" = "armv8l" ] || [ "$DETECTED_ARCH" = "armv8b" ]; then
ARCH=arm64
else
printf "ERROR\tArchitecture %s not supported by $PRODUCT_NAME\n" "$DETECTED_ARCH"
exit 1
fi
fi

if [ -z "$VERSION" ]; then
# Fetching latest version
printf "INFO\tFetching latest $PRODUCT_NAME version..\n"
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/dev/documentation/requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This page expose the different requirements to run Kuma.

## Architecture

Kuma supports machines with `x86_64` architecture and since `1.7.0` it's possible to run Kuma on `arm64`.

## Kubernetes

Kuma is validated against Kubernetes `1.19.x`, `1.20.x`, `1.21.x` and `1.22.x`.
Expand Down
6 changes: 0 additions & 6 deletions docs/docs/dev/other/compatibility.md

This file was deleted.

0 comments on commit 53ac9c6

Please sign in to comment.