refactor!: deprecate mirrors assets

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
This commit is contained in:
Yue Yang 2025-04-29 14:09:08 +08:00
parent 1363ccb5f9
commit 635fd4857b
18 changed files with 59 additions and 70 deletions

View File

@ -170,7 +170,7 @@ For more values and their usages, refer to [all values](https://github.com/chaos
Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually: Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl create -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl create -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -45,27 +45,27 @@ To install Chaos Mesh in a test environment, run the following script:
]}> ]}>
<TabItem value="k8s"> <TabItem value="k8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="kind"> <TabItem value="kind">
<PickVersion>{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`}</PickVersion> <PickVersion>{`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}</PickVersion>
If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example: If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="k3s"> <TabItem value="k3s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="microk8s"> <TabItem value="microk8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
</Tabs> </Tabs>
@ -87,7 +87,7 @@ For more installation details, refer to the source code of the [`install.sh`](ht
To uninstall Chaos Mesh, execute the following command: To uninstall Chaos Mesh, execute the following command:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh: You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh:

View File

@ -172,7 +172,7 @@ helm upgrade chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --set dashboard.crea
目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD 目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl replace -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl replace -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -33,7 +33,7 @@ import QuickRun from './common/\_quick-run.md'
要在试用环境中安装 Chaos Mesh请运行以下脚本 要在试用环境中安装 Chaos Mesh请运行以下脚本
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
:::note 注意 :::note 注意
@ -41,25 +41,25 @@ import QuickRun from './common/\_quick-run.md'
- 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。 - 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}
</PickVersion> </PickVersion>
若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如: 若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
- 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。 - 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
- 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。 - 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
::: :::
@ -81,7 +81,7 @@ import QuickRun from './common/\_quick-run.md'
如要卸载 Chaos Mesh请执行以下命令 如要卸载 Chaos Mesh请执行以下命令
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh 也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh

View File

@ -172,7 +172,7 @@ helm upgrade chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --set dashboard.crea
目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD 目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl replace -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl replace -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -33,7 +33,7 @@ import QuickRun from './common/\_quick-run.md'
要在试用环境中安装 Chaos Mesh请运行以下脚本 要在试用环境中安装 Chaos Mesh请运行以下脚本
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
:::note 注意 :::note 注意
@ -41,25 +41,25 @@ import QuickRun from './common/\_quick-run.md'
- 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。 - 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}
</PickVersion> </PickVersion>
若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如: 若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
- 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。 - 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
- 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。 - 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
::: :::
@ -81,7 +81,7 @@ import QuickRun from './common/\_quick-run.md'
如要卸载 Chaos Mesh请执行以下命令 如要卸载 Chaos Mesh请执行以下命令
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh 也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh

View File

@ -172,7 +172,7 @@ helm upgrade chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --set dashboard.crea
目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD 目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl replace -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl replace -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -33,7 +33,7 @@ import QuickRun from './common/\_quick-run.md'
要在试用环境中安装 Chaos Mesh请运行以下脚本 要在试用环境中安装 Chaos Mesh请运行以下脚本
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
:::note 注意 :::note 注意
@ -41,25 +41,25 @@ import QuickRun from './common/\_quick-run.md'
- 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。 - 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}
</PickVersion> </PickVersion>
若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如: 若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
- 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。 - 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
- 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。 - 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
::: :::
@ -81,7 +81,7 @@ import QuickRun from './common/\_quick-run.md'
如要卸载 Chaos Mesh请执行以下命令 如要卸载 Chaos Mesh请执行以下命令
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh 也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh

View File

@ -172,7 +172,7 @@ helm upgrade chaos-mesh chaos-mesh/chaos-mesh -n=chaos-mesh --set dashboard.crea
目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD 目前Helm 在升级时不会应用最新的 CustomResourceDefinition (CRD),这可能会导致一些错误的发生。为了避免这种情况,请手动应用最新的 CRD
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl replace -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl replace -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -33,7 +33,7 @@ import QuickRun from './common/\_quick-run.md'
要在试用环境中安装 Chaos Mesh请运行以下脚本 要在试用环境中安装 Chaos Mesh请运行以下脚本
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
:::note 注意 :::note 注意
@ -41,25 +41,25 @@ import QuickRun from './common/\_quick-run.md'
- 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。 - 如果当前环境为 [kind](https://kind.sigs.k8s.io/),请在脚本后添加 `--local kind` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}
</PickVersion> </PickVersion>
若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如: 若需要指定 kind 版本,请在脚本后添加 `--kind-version xxx` 参数,如:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
- 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。 - 如果当前环境为 [K3s](https://k3s.io/),请在脚本后添加 `--k3s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
- 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。 - 如果当前环境为 [Microk8s](https://microk8s.io/),请在脚本后添加 `--microk8s` 参数。
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
::: :::
@ -81,7 +81,7 @@ import QuickRun from './common/\_quick-run.md'
如要卸载 Chaos Mesh请执行以下命令 如要卸载 Chaos Mesh请执行以下命令
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh 也可以通过删除 `chaos-mesh` 命名空间直接卸载 Chaos Mesh

View File

@ -28,17 +28,10 @@ export const usePickVersion = (siteConfig, versions) => {
return activeVersion ? activeVersion.name : latestStableVersion.name return activeVersion ? activeVersion.name : latestStableVersion.name
} }
function versionToGitHubRef(version) {
return version === 'latest' ? 'refs/heads/master' : `refs/tags/v${version}`
}
const PickVersion = ({ const PickVersion = ({
children, children,
// `replaced` represent the string would be replaced in the original content. // `replaced` represent the string would be replaced in the original content.
replaced = 'latest', replaced = 'refs/heads/master',
// When `isArchive` is true, it would be replaced as patterns like `refs/heads/master` or `refs/tags/vX.Y.Z`.
// When `isArchive` is false, it would be replaced with `vX.Y.Z`.
isArchive = false,
className = 'language-bash', className = 'language-bash',
}) => { }) => {
const { siteConfig } = useDocusaurusContext() const { siteConfig } = useDocusaurusContext()
@ -48,11 +41,7 @@ const PickVersion = ({
<BrowserOnly> <BrowserOnly>
{() => { {() => {
const version = usePickVersion(siteConfig, versions) const version = usePickVersion(siteConfig, versions)
const rendered = isArchive const rendered = version === 'latest' ? children : children.replace(replaced, `refs/tags/v${version}`)
? children.replace(replaced, versionToGitHubRef(version))
: version === 'latest'
? children
: children.replace(replaced, 'v' + version)
return <CodeBlock className={className}>{rendered}</CodeBlock> return <CodeBlock className={className}>{rendered}</CodeBlock>
}} }}

View File

@ -118,7 +118,7 @@ function Home() {
<Translate id="home.tryitout">Try it out with the following command 👇</Translate> <Translate id="home.tryitout">Try it out with the following command 👇</Translate>
</h2> </h2>
<PickVersion className="!tw-mb-0"> <PickVersion className="!tw-mb-0">
curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash
</PickVersion> </PickVersion>
</div> </div>
</div> </div>

View File

@ -170,7 +170,7 @@ For more values and their usages, refer to [all values](https://github.com/chaos
Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually: Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl create -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl create -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -45,27 +45,27 @@ To install Chaos Mesh in a test environment, run the following script:
]}> ]}>
<TabItem value="k8s"> <TabItem value="k8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="kind"> <TabItem value="kind">
<PickVersion>{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`}</PickVersion> <PickVersion>{`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}</PickVersion>
If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example: If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="k3s"> <TabItem value="k3s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="microk8s"> <TabItem value="microk8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
</Tabs> </Tabs>
@ -87,7 +87,7 @@ For more installation details, refer to the source code of the [`install.sh`](ht
To uninstall Chaos Mesh, execute the following command: To uninstall Chaos Mesh, execute the following command:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh: You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh:

View File

@ -170,7 +170,7 @@ For more values and their usages, refer to [all values](https://github.com/chaos
Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually: Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl create -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl create -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -45,27 +45,27 @@ To install Chaos Mesh in a test environment, run the following script:
]}> ]}>
<TabItem value="k8s"> <TabItem value="k8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="kind"> <TabItem value="kind">
<PickVersion>{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`}</PickVersion> <PickVersion>{`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}</PickVersion>
If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example: If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="k3s"> <TabItem value="k3s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="microk8s"> <TabItem value="microk8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
</Tabs> </Tabs>
@ -87,7 +87,7 @@ For more installation details, refer to the source code of the [`install.sh`](ht
To uninstall Chaos Mesh, execute the following command: To uninstall Chaos Mesh, execute the following command:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh: You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh:

View File

@ -170,7 +170,7 @@ For more values and their usages, refer to [all values](https://github.com/chaos
Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually: Currently, the latest CustomResourceDefinition (CRD) is not applied during the Helm upgrading, which might cause errors. To avoid this situation, you can apply the latest CRD manually:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/crd.yaml | kubectl create -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/manifests/crd.yaml | kubectl create -f -`}
</PickVersion> </PickVersion>
::: :::

View File

@ -45,27 +45,27 @@ To install Chaos Mesh in a test environment, run the following script:
]}> ]}>
<TabItem value="k8s"> <TabItem value="k8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="kind"> <TabItem value="kind">
<PickVersion>{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind`}</PickVersion> <PickVersion>{`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind`}</PickVersion>
If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example: If you want to specify a `kind` version, add the `--kind-version xx` parameter at the end of the script, for example:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --local kind --kind-version v0.20.0`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --local kind --kind-version v0.20.0`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="k3s"> <TabItem value="k3s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --k3s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --k3s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
<TabItem value="microk8s"> <TabItem value="microk8s">
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --microk8s`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --microk8s`}
</PickVersion> </PickVersion>
</TabItem> </TabItem>
</Tabs> </Tabs>
@ -87,7 +87,7 @@ For more installation details, refer to the source code of the [`install.sh`](ht
To uninstall Chaos Mesh, execute the following command: To uninstall Chaos Mesh, execute the following command:
<PickVersion> <PickVersion>
{`curl -sSL https://mirrors.chaos-mesh.org/latest/install.sh | bash -s -- --template | kubectl delete -f -`} {`curl -sSL https://github.com/chaos-mesh/chaos-mesh/raw/refs/heads/master/install.sh | bash -s -- --template | kubectl delete -f -`}
</PickVersion> </PickVersion>
You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh: You can also delete the `chaos-mesh` namespace to directly uninstall Chaos Mesh: