From e66d61d9a644c20f3905e48e3a1738103b04f886 Mon Sep 17 00:00:00 2001 From: Yi-Han Chen Date: Thu, 29 Dec 2022 00:03:07 -0500 Subject: [PATCH] fix(#38432): Use Kubernetes colors in stateDiagram improve stateDiagram's style in pod-scheduling-readiness page --- .../pod-scheduling-readiness.md | 17 +---------------- content/en/docs/images/podSchedulingGates.svg | 1 + 2 files changed, 2 insertions(+), 16 deletions(-) create mode 100644 content/en/docs/images/podSchedulingGates.svg diff --git a/content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md b/content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md index 5a5647985d..be99946315 100644 --- a/content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md +++ b/content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md @@ -26,22 +26,7 @@ criteria that Pod should be satisfied before considered schedulable. This field only when a Pod is created (either by the client, or mutated during admission). After creation, each schedulingGate can be removed in arbitrary order, but addition of a new scheduling gate is disallowed. -{{}} -stateDiagram-v2 - s1: pod created - s2: pod scheduling gated - s3: pod scheduling ready - s4: pod running - if: empty scheduling gates? - [*] --> s1 - s1 --> if - s2 --> if: scheduling gate removed - if --> s2: no - if --> s3: yes - s3 --> s4 - s4 --> [*] -{{< /mermaid >}} - +{{< figure src="/docs/images/podSchedulingGates.svg" alt="pod-scheduling-gates-diagram" caption="Figure. Pod SchedulingGates" class="diagram-large" link="https://mermaid.live/edit#pako:eNplkktTwyAUhf8KgzuHWpukaYszutGlK3caFxQuCVMCGSDVTKf_XfKyPlhxz4HDB9wT5lYAptgHFuBRsdKxenFMClMYFIdfUdRYgbiD6ItJTEbR8wpEq5UpUfnDTf-5cbPoJjcbXdcaE61RVJIiqJvQ_Y30D-OCt-t3tFjcR5wZayiVnIGmkv4NiEfX9jijKTmmRH5jf0sRugOP0HyHUc1m6KGMFP27cM28fwSJDluPpNKaXqVJzmFNfHD2APRKSjnNFx9KhIpmzSfhVls3eHdTRrwG8QnxKfEZUUNeYTDBNbiaKRF_5dSfX-BQQQ0FpnEqQLJWhwIX5hyXsjbYl85wTINrgeC2EZd_xFQy7b_VJ6GCdd-itkxALE84dE3fAqXyIUZya6Qqe711OspVCI2ny2Vv35QqVO3-htt66ZWomAvVcZcv8yTfsiSFfJOydZoKvl_ttjLJVlJsblcJw-czwQ0zr9ZeqGDgeR77b2jD8xdtjtDn" >}} ## Usage example To mark a Pod not-ready for scheduling, you can create it with one or more scheduling gates like this: diff --git a/content/en/docs/images/podSchedulingGates.svg b/content/en/docs/images/podSchedulingGates.svg new file mode 100644 index 0000000000..2f8f737a4f --- /dev/null +++ b/content/en/docs/images/podSchedulingGates.svg @@ -0,0 +1 @@ +
scheduling gate removed
no
yes
pod created
pod scheduling gated
pod scheduling ready
pod running
empty scheduling gates?
\ No newline at end of file