<svg xmlns="http://www.w3.org/2000/svg" width="1200" height="680" viewBox="0 0 1200 680">
  <rect width="1200" height="680" fill="#f8fafc"/>
  <text x="60" y="72" font-family="Arial, 'Microsoft YaHei', sans-serif" font-size="34" font-weight="700" fill="#0f172a">Kubernetes HPA自动扩缩容流程</text>
  <text x="60" y="112" font-family="Arial, 'Microsoft YaHei', sans-serif" font-size="18" fill="#475569">指标采集、HPA判断与Pod副本调整的典型过程</text>
  <defs><marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto"><path d="M2,2 L10,6 L2,10 Z" fill="#2563eb"/></marker></defs>
  <g font-family="Arial, 'Microsoft YaHei', sans-serif">
    <rect x="85" y="290" width="180" height="90" rx="18" fill="#ecfeff" stroke="#0891b2" stroke-width="2"/>
    <text x="175" y="328" text-anchor="middle" font-size="22" font-weight="700" fill="#155e75">指标系统</text>
    <text x="175" y="358" text-anchor="middle" font-size="16" fill="#0e7490">Metrics Server</text>
    <line x1="275" y1="335" x2="385" y2="335" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>
    <rect x="400" y="275" width="190" height="120" rx="20" fill="#dbeafe" stroke="#2563eb" stroke-width="2"/>
    <text x="495" y="320" text-anchor="middle" font-size="24" font-weight="700" fill="#1e3a8a">HPA</text>
    <text x="495" y="352" text-anchor="middle" font-size="16" fill="#1d4ed8">比较目标指标与实际值</text>
    <line x1="600" y1="335" x2="710" y2="335" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>
    <rect x="725" y="290" width="170" height="90" rx="18" fill="#eef2ff" stroke="#4f46e5" stroke-width="2"/>
    <text x="810" y="328" text-anchor="middle" font-size="24" font-weight="700" fill="#3730a3">Deployment</text>
    <text x="810" y="358" text-anchor="middle" font-size="16" fill="#4338ca">调整副本数</text>
    <line x1="905" y1="335" x2="980" y2="265" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>
    <line x1="905" y1="335" x2="980" y2="335" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>
    <line x1="905" y1="335" x2="980" y2="405" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>
    <rect x="995" y="225" width="135" height="70" rx="16" fill="#f0fdf4" stroke="#16a34a" stroke-width="2"/>
    <text x="1062" y="268" text-anchor="middle" font-size="20" font-weight="700" fill="#166534">Pod 1</text>
    <rect x="995" y="305" width="135" height="70" rx="16" fill="#f0fdf4" stroke="#16a34a" stroke-width="2"/>
    <text x="1062" y="348" text-anchor="middle" font-size="20" font-weight="700" fill="#166534">Pod 2</text>
    <rect x="995" y="385" width="135" height="70" rx="16" fill="#f0fdf4" stroke="#16a34a" stroke-width="2"/>
    <text x="1062" y="428" text-anchor="middle" font-size="20" font-weight="700" fill="#166534">Pod 3</text>
    <rect x="250" y="500" width="700" height="54" rx="27" fill="#eff6ff" stroke="#bfdbfe"/>
    <text x="600" y="535" text-anchor="middle" font-size="18" fill="#1e40af">HPA基于指标自动调整副本，但前提是资源配置、指标采集和应用弹性能力都足够可靠</text>
  </g>
</svg>
