From 4e5fac1c88c1a13ab9acf56b1ea19c0c6eef7f9f Mon Sep 17 00:00:00 2001 From: cuisongliu Date: Fri, 8 Apr 2022 15:46:01 +0800 Subject: [PATCH] refactor(master): support docs for sealos 4.0 (#922) --- docs/4.0/install-sealos.md | 60 ++++++++++++++++++++++++++++++++++++++ docs/4.0/reset.md | 5 ++++ docs/4.0/run.md | 23 --------------- 3 files changed, 65 insertions(+), 23 deletions(-) create mode 100644 docs/4.0/install-sealos.md create mode 100644 docs/4.0/reset.md diff --git a/docs/4.0/install-sealos.md b/docs/4.0/install-sealos.md new file mode 100644 index 000000000..aa818e5ae --- /dev/null +++ b/docs/4.0/install-sealos.md @@ -0,0 +1,60 @@ +### install buildah + +#### amd64 + +```shell +wget https://sealyun-home.oss-accelerate.aliyuncs.com/images/buildah.linux.amd64 --no-check-certificate -O buildah +chmod a+x buildah && mv buildah /usr/bin +``` + +#### arm64 + +```shell +wget https://sealyun-home.oss-accelerate.aliyuncs.com/images/buildah.linux.arm64 --no-check-certificate -O buildah +chmod a+x buildah && mv buildah /usr/bin +``` + +#### init buildah + +```shell +mkdir -p /etc/containers +cat > /etc/containers/policy.json << EOF +{ + "default": [ + { + "type": "insecureAcceptAnything" + } + ], + "transports": + { + "docker-daemon": + { + "": [{"type":"insecureAcceptAnything"}] + } + } +} +EOF + +cat > /etc/containers/storage.conf << EOF +[storage] +# Default Storage Driver, Must be set for proper operation. +driver = "overlay" +# Temporary storage location +runroot = "/run/containers/storage" +# Primary Read/Write location of container storage +# When changing the graphroot location on an SELINUX system, you must +# ensure the labeling matches the default locations labels with the +# following commands: +# semanage fcontext -a -e /var/lib/containers/storage /NEWSTORAGEPATH +# restorecon -R -v /NEWSTORAGEPATH +graphroot = "/var/lib/containers/storage" +EOF + +``` + +### install sealos + +```shell +wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/sealos-4.0/latest/sealos-amd64 -O sealos && \ +chmod +x sealos && mv sealos /usr/bin +``` diff --git a/docs/4.0/reset.md b/docs/4.0/reset.md new file mode 100644 index 000000000..53c47c942 --- /dev/null +++ b/docs/4.0/reset.md @@ -0,0 +1,5 @@ +### reset cluster + +```shell +sealos reset +``` diff --git a/docs/4.0/run.md b/docs/4.0/run.md index 3df8b0901..81b1d0d02 100644 --- a/docs/4.0/run.md +++ b/docs/4.0/run.md @@ -1,26 +1,3 @@ -### install buildah - -#### amd64 - -```shell -wget https://sealyun-home.oss-accelerate.aliyuncs.com/images/buildah.linux.amd64 --no-check-certificate -O buildah -chmod a+x buildah && mv buildah /usr/bin -``` - -#### arm64 - -```shell -wget https://sealyun-home.oss-accelerate.aliyuncs.com/images/buildah.linux.arm64 --no-check-certificate -O buildah -chmod a+x buildah && mv buildah /usr/bin -``` - -### install sealos - -```shell -wget -c https://sealyun.oss-cn-beijing.aliyuncs.com/sealos-4.0/latest/sealos && \ -chmod +x sealos && mv sealos /usr/bin -``` - ### run calico ```shell