Last active
April 3, 2023 00:37
-
-
Save casjay/7f3ef83b18c37327327b756469b050d5 to your computer and use it in GitHub Desktop.
Install kubesphere on debian
This file contains 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
apt-get update | |
apt-get install -yy ca-certificates curl gnupg | |
mkdir -m 0755 -p /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null | |
chmod a+r /etc/apt/keyrings/docker.gpg | |
apt-get update | |
apt-get install -yy docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin openssh-server | |
if [ -n "$CONTAINER" ]; then | |
mkdir -p /run/sshd | |
/usr/sbin/sshd -t && /usr/sbin/sshd -D $SSHD_OPTS || exit 1 | |
fi | |
curl -sfL https://get-kk.kubesphere.io | sh - | |
chmod +x kk && mv -f kk /usr/local/bin/kk | |
rm -Rf kubekey-v3.0.2-linux-amd64.tar.gz | |
kk create cluster --with-kubernetes --with-kubesphere --yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment