<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工作负载生命周期</text>
  <text x="60" y="112" font-family="Arial, 'Microsoft YaHei', sans-serif" font-size="18" fill="#475569">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="100" y="260" width="170" height="90" rx="18" fill="#f1f5f9" stroke="#64748b" stroke-width="2"/>
    <text x="185" y="297" text-anchor="middle" font-size="22" font-weight="700" fill="#334155">Pending</text>
    <text x="185" y="327" text-anchor="middle" font-size="16" fill="#475569">等待调度</text>

    <line x1="280" y1="305" x2="390" y2="305" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>

    <rect x="405" y="260" width="170" height="90" rx="18" fill="#dbeafe" stroke="#2563eb" stroke-width="2"/>
    <text x="490" y="297" text-anchor="middle" font-size="22" font-weight="700" fill="#1e3a8a">Running</text>
    <text x="490" y="327" text-anchor="middle" font-size="16" fill="#1d4ed8">容器运行</text>

    <line x1="585" y1="305" x2="695" y2="305" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow)"/>

    <rect x="710" y="260" width="170" height="90" rx="18" fill="#f0fdf4" stroke="#16a34a" stroke-width="2"/>
    <text x="795" y="297" text-anchor="middle" font-size="22" font-weight="700" fill="#166534">Ready</text>
    <text x="795" y="327" text-anchor="middle" font-size="16" fill="#15803d">可接收流量</text>

    <line x1="490" y1="355" x2="490" y2="445" stroke="#f97316" stroke-width="3" marker-end="url(#arrow)"/>
    <rect x="405" y="460" width="170" height="90" rx="18" fill="#fff7ed" stroke="#f97316" stroke-width="2"/>
    <text x="490" y="497" text-anchor="middle" font-size="22" font-weight="700" fill="#9a3412">Restart</text>
    <text x="490" y="527" text-anchor="middle" font-size="16" fill="#c2410c">按策略重启</text>

    <line x1="795" y1="355" x2="795" y2="445" stroke="#dc2626" stroke-width="3" marker-end="url(#arrow)"/>
    <rect x="710" y="460" width="170" height="90" rx="18" fill="#fee2e2" stroke="#dc2626" stroke-width="2"/>
    <text x="795" y="497" text-anchor="middle" font-size="22" font-weight="700" fill="#991b1b">Failed</text>
    <text x="795" y="527" text-anchor="middle" font-size="16" fill="#b91c1c">异常退出</text>

    <rect x="940" y="260" width="170" height="90" rx="18" fill="#ecfeff" stroke="#0891b2" stroke-width="2"/>
    <text x="1025" y="297" text-anchor="middle" font-size="22" font-weight="700" fill="#155e75">Succeeded</text>
    <text x="1025" y="327" text-anchor="middle" font-size="16" fill="#0e7490">任务完成</text>
    <line x1="890" y1="305" x2="930" y2="305" stroke="#0891b2" stroke-width="3" marker-end="url(#arrow)"/>

    <rect x="250" y="155" width="700" height="54" rx="27" fill="#eff6ff" stroke="#bfdbfe"/>
    <text x="600" y="190" text-anchor="middle" font-size="18" fill="#1e40af">Scheduler决定运行位置，kubelet负责拉起容器并上报状态</text>
  </g>
</svg>
