Skip to content

Commit e66d61d

Browse files
committed
fix(#38432): Use Kubernetes colors in stateDiagram
improve stateDiagram's style in pod-scheduling-readiness page
1 parent d6f0cb2 commit e66d61d

File tree

2 files changed

+2
-16
lines changed

2 files changed

+2
-16
lines changed

content/en/docs/concepts/scheduling-eviction/pod-scheduling-readiness.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,7 @@ criteria that Pod should be satisfied before considered schedulable. This field
2626
only when a Pod is created (either by the client, or mutated during admission). After creation,
2727
each schedulingGate can be removed in arbitrary order, but addition of a new scheduling gate is disallowed.
2828

29-
{{<mermaid>}}
30-
stateDiagram-v2
31-
s1: pod created
32-
s2: pod scheduling gated
33-
s3: pod scheduling ready
34-
s4: pod running
35-
if: empty scheduling gates?
36-
[*] --> s1
37-
s1 --> if
38-
s2 --> if: scheduling gate removed
39-
if --> s2: no
40-
if --> s3: yes
41-
s3 --> s4
42-
s4 --> [*]
43-
{{< /mermaid >}}
44-
29+
{{< 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" >}}
4530
## Usage example
4631

4732
To mark a Pod not-ready for scheduling, you can create it with one or more scheduling gates like this:
Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)