Skip to content

Commit 61ee529

Browse files
authored
Merge pull request #38086 from windsonsea/hpay
Replace an image with mermaid
2 parents 1b554d8 + b319f84 commit 61ee529

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

content/en/docs/tasks/run-application/horizontal-pod-autoscale.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,30 @@ horizontal pod autoscaling.
4747

4848
## How does a HorizontalPodAutoscaler work?
4949

50-
{{< figure src="/images/docs/horizontal-pod-autoscaler.svg" caption="HorizontalPodAutoscaler controls the scale of a Deployment and its ReplicaSet" class="diagram-medium">}}
50+
{{< mermaid >}}
51+
graph BT
52+
53+
hpa[Horizontal Pod Autoscaler] --> scale[Scale]
54+
55+
subgraph rc[RC / Deployment]
56+
scale
57+
end
58+
59+
scale -.-> pod1[Pod 1]
60+
scale -.-> pod2[Pod 2]
61+
scale -.-> pod3[Pod N]
62+
63+
classDef hpa fill:#D5A6BD,stroke:#1E1E1D,stroke-width:1px,color:#1E1E1D;
64+
classDef rc fill:#F9CB9C,stroke:#1E1E1D,stroke-width:1px,color:#1E1E1D;
65+
classDef scale fill:#B6D7A8,stroke:#1E1E1D,stroke-width:1px,color:#1E1E1D;
66+
classDef pod fill:#9FC5E8,stroke:#1E1E1D,stroke-width:1px,color:#1E1E1D;
67+
class hpa hpa;
68+
class rc rc;
69+
class scale scale;
70+
class pod1,pod2,pod3 pod
71+
{{< /mermaid >}}
72+
73+
Figure 1. HorizontalPodAutoscaler controls the scale of a Deployment and its ReplicaSet
5174

5275
Kubernetes implements horizontal pod autoscaling as a control loop that runs intermittently
5376
(it is not a continuous process). The interval is set by the

0 commit comments

Comments
 (0)