From 43853b97c8a47524741a1d1d2ba49277ad49b393 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Thu, 27 Jun 2024 16:53:21 +0800 Subject: [PATCH 1/2] [doc] Update menu --- site/config.yaml | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/site/config.yaml b/site/config.yaml index 4c81b414d..70f8f7661 100644 --- a/site/config.yaml +++ b/site/config.yaml @@ -152,10 +152,14 @@ menu: weight: 1060 parent: user-guide + - identifier: examples + title: Examples + parent: user-guide + - identifier: kwokctl-advanced-usage title: "`kwokctl` Advanced Usage" weight: 200010 - parent: user-guide + parent: examples - identifier: snapshots pageRef: "/docs/user/kwokctl-snapshot" parent: kwokctl-advanced-usage @@ -172,24 +176,32 @@ menu: pageRef: "/docs/user/kwokctl-platform-specific-binaries" parent: kwokctl-advanced-usage - - identifier: examples - title: Examples - parent: kwokctl-advanced-usage + - identifier: kwokctl-integration + title: "`kwokctl` Integration" + weight: 200020 + parent: examples - identifier: argo pageRef: "/docs/examples/argo" - parent: examples + parent: kwokctl-integration - identifier: linkerd pageRef: "/docs/examples/linkerd" - parent: examples + parent: kwokctl-integration - identifier: istio pageRef: "/docs/examples/istio" - parent: examples + parent: kwokctl-integration - identifier: metrics-server pageRef: "/docs/examples/metrics-server" - parent: examples + parent: kwokctl-integration - identifier: metrics pageRef: "/docs/examples/prometheus" + parent: kwokctl-integration + + - identifier: chaos + title: Chaos parent: examples + - identifier: injectfailure + pageRef: "/docs/user/examples/injectfailure" + parent: chaos - identifier: tools title: Tools From 43c0f7509a0839acebb0a53c90e40e1002b40fb3 Mon Sep 17 00:00:00 2001 From: Shiming Zhang Date: Thu, 27 Jun 2024 16:31:45 +0800 Subject: [PATCH 2/2] [doc] Add a page for inject failure demo --- .../user/examples/injectfailure/_index.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 site/content/en/docs/user/examples/injectfailure/_index.md diff --git a/site/content/en/docs/user/examples/injectfailure/_index.md b/site/content/en/docs/user/examples/injectfailure/_index.md new file mode 100644 index 000000000..fb5ed2794 --- /dev/null +++ b/site/content/en/docs/user/examples/injectfailure/_index.md @@ -0,0 +1,31 @@ +--- +title: Inject Failure +--- + +# Inject Failure Demo + +{{< hint "info" >}} + +This is a demo that introduces how to inject fault to initContainer in an existing minikube cluster. + +{{< /hint >}} + + + +{{< expand "Demo Detail Steps" >}} + +{{< code-sample file="init-container-error-injection.demo" language="bash" >}} + +{{< /expand >}} + +{{< expand "virtual-gpu-node.yaml" >}} + +{{< code-sample file="virtual-gpu-node.yaml" >}} + +{{< /expand >}} + +{{< expand "failed-pod.yaml" >}} + +{{< code-sample file="failed-pod.yaml" >}} + +{{< /expand >}}