generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[doc] Add a page for inject failure demo
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
site/content/en/docs/user/examples/injectfailure/_index.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 >}} | ||
|
||
<img width="700px" src="init-container-error-injection.svg"> | ||
|
||
{{< 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 >}} |