<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Kubernetes on Hiren Panchasara</title>
		<link>https://hiren.me/tags/kubernetes/</link>
		<description>Recent content in Kubernetes on Hiren Panchasara</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<lastBuildDate>Mon, 05 Oct 2026 16:10:00 -0700</lastBuildDate>
		
			<atom:link href="https://hiren.me/tags/kubernetes/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Inference engines (part 2): deploying one</title>
				<link>https://hiren.me/posts/inference-engines-part-2/</link>
				<pubDate>Mon, 05 Oct 2026 16:10:00 -0700</pubDate>
				<guid>https://hiren.me/posts/inference-engines-part-2/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://hiren.me/posts/inference-engines-part-1/&#34; &gt;Part 1&lt;/a&gt; opened up an engine. This part runs one in production: what the pod looks like, what happens when the model doesn&amp;rsquo;t fit one GPU, and what to watch once it runs. The examples use vLLM on Kubernetes, with SGLang&amp;rsquo;s differences in a table. &lt;a href=&#34;https://hiren.me/posts/inference-engines-part-3/&#34; &gt;Part 3&lt;/a&gt; covers stacks you can&amp;rsquo;t deploy yourself.&lt;/p&gt;&#xA;&lt;h2 id=&#34;one-replica&#34;&gt;&#xA;  One replica&#xA;  &lt;a class=&#34;heading-link&#34; href=&#34;#one-replica&#34;&gt;&#xA;    &lt;i class=&#34;fa-solid fa-link&#34; aria-hidden=&#34;true&#34; title=&#34;Link to heading&#34;&gt;&lt;/i&gt;&#xA;    &lt;span class=&#34;sr-only&#34;&gt;Link to heading&lt;/span&gt;&#xA;  &lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;figure class=&#34;epod&#34;&gt;&#xA;  &lt;style&gt;&#xA;    .epod { --ep-req: #2a78d6; --ep-hi: #2a78d6; --ep-box: rgba(128,128,128,.10); --ep-edge: rgba(128,128,128,.55);&#xA;            border: 1px solid rgba(128,128,128,.35); border-radius: 8px; padding: 14px; margin: 1.5em 0; }&#xA;    @media (prefers-color-scheme: dark) { body.colorscheme-auto .epod { --ep-req: #3987e5; --ep-hi: #3987e5; } }&#xA;    body.colorscheme-dark .epod { --ep-req: #3987e5; --ep-hi: #3987e5; }&#xA;    .epod svg { width: 100%; height: auto; display: block; }&#xA;    .epod svg text { fill: currentColor; font-size: 12.5px; }&#xA;    .epod svg .t { font-weight: 700; font-size: 13px; }&#xA;    .epod svg .s { font-size: 10.5px; opacity: .8; }&#xA;    .epod svg rect { fill: var(--ep-box); stroke: var(--ep-edge); }&#xA;    .epod svg rect.hi { stroke: var(--ep-hi); stroke-width: 2; }&#xA;    .epod svg rect.grp { fill: none; stroke-dasharray: 5 4; }&#xA;    .epod svg .req { stroke: var(--ep-req); stroke-width: 2; fill: none; }&#xA;    .epod svg .ctl { stroke: var(--ep-edge); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }&#xA;    .epod figcaption { font-size: 12.5px; opacity: .8; margin-top: 8px; }&#xA;  &lt;/style&gt;&#xA;  &lt;svg viewBox=&#34;0 0 760 300&#34; role=&#34;img&#34; aria-label=&#34;One engine replica on Kubernetes&#34;&gt;&#xA;    &lt;defs&gt;&#xA;      &lt;marker id=&#34;epod-r&#34; viewBox=&#34;0 0 10 10&#34; refX=&#34;9&#34; refY=&#34;5&#34; markerWidth=&#34;7&#34; markerHeight=&#34;7&#34; orient=&#34;auto&#34;&gt;&lt;path d=&#34;M0,0 L10,5 L0,10 z&#34; style=&#34;fill:var(--ep-req)&#34;/&gt;&lt;/marker&gt;&#xA;    &lt;/defs&gt;&#xA;    &lt;rect x=&#34;8&#34; y=&#34;110&#34; width=&#34;120&#34; height=&#34;64&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;68&#34; y=&#34;136&#34; text-anchor=&#34;middle&#34;&gt;Service&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;68&#34; y=&#34;154&#34; text-anchor=&#34;middle&#34;&gt;port 80 → 8000&lt;/text&gt;&#xA;&#xA;    &lt;rect class=&#34;grp&#34; x=&#34;160&#34; y=&#34;20&#34; width=&#34;420&#34; height=&#34;270&#34; rx=&#34;8&#34;/&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;172&#34; y=&#34;38&#34;&gt;GPU node&lt;/text&gt;&#xA;    &lt;rect class=&#34;grp&#34; x=&#34;176&#34; y=&#34;48&#34; width=&#34;390&#34; height=&#34;180&#34; rx=&#34;8&#34;/&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;188&#34; y=&#34;66&#34;&gt;pod&lt;/text&gt;&#xA;&#xA;    &lt;rect class=&#34;hi&#34; x=&#34;196&#34; y=&#34;76&#34; width=&#34;210&#34; height=&#34;136&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;301&#34; y=&#34;100&#34; text-anchor=&#34;middle&#34;&gt;Engine container&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;301&#34; y=&#34;118&#34; text-anchor=&#34;middle&#34;&gt;image: vllm/vllm-openai&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;210&#34; y=&#34;146&#34;&gt;:8000 /v1/chat/completions&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;210&#34; y=&#34;164&#34;&gt;:8000 /health → probes&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;210&#34; y=&#34;182&#34;&gt;:8000 /metrics → Prometheus&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;210&#34; y=&#34;200&#34;&gt;limits: nvidia.com/gpu: 1&lt;/text&gt;&#xA;&#xA;    &lt;rect x=&#34;430&#34; y=&#34;76&#34; width=&#34;122&#34; height=&#34;60&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;491&#34; y=&#34;100&#34; text-anchor=&#34;middle&#34;&gt;Model cache&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;491&#34; y=&#34;118&#34; text-anchor=&#34;middle&#34;&gt;PVC, weights&lt;/text&gt;&#xA;&#xA;    &lt;rect x=&#34;430&#34; y=&#34;150&#34; width=&#34;122&#34; height=&#34;62&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;491&#34; y=&#34;174&#34; text-anchor=&#34;middle&#34;&gt;/dev/shm&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;491&#34; y=&#34;192&#34; text-anchor=&#34;middle&#34;&gt;in-memory volume&lt;/text&gt;&#xA;&#xA;    &lt;rect x=&#34;196&#34; y=&#34;240&#34; width=&#34;370&#34; height=&#34;40&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;381&#34; y=&#34;265&#34; text-anchor=&#34;middle&#34;&gt;GPU (weights + KV cache in its memory)&lt;/text&gt;&#xA;&#xA;    &lt;rect x=&#34;610&#34; y=&#34;76&#34; width=&#34;142&#34; height=&#34;64&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;681&#34; y=&#34;102&#34; text-anchor=&#34;middle&#34;&gt;Prometheus&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;681&#34; y=&#34;120&#34; text-anchor=&#34;middle&#34;&gt;scrapes /metrics&lt;/text&gt;&#xA;&#xA;    &lt;rect x=&#34;610&#34; y=&#34;160&#34; width=&#34;142&#34; height=&#34;64&#34; rx=&#34;6&#34;/&gt;&#xA;    &lt;text class=&#34;t&#34; x=&#34;681&#34; y=&#34;186&#34; text-anchor=&#34;middle&#34;&gt;Hugging Face&lt;/text&gt;&#xA;    &lt;text class=&#34;s&#34; x=&#34;681&#34; y=&#34;204&#34; text-anchor=&#34;middle&#34;&gt;weights, first boot&lt;/text&gt;&#xA;&#xA;    &lt;line class=&#34;req&#34; x1=&#34;128&#34; y1=&#34;142&#34; x2=&#34;194&#34; y2=&#34;142&#34; marker-end=&#34;url(#epod-r)&#34;/&gt;&#xA;    &lt;line class=&#34;ctl&#34; x1=&#34;406&#34; y1=&#34;106&#34; x2=&#34;428&#34; y2=&#34;106&#34;/&gt;&#xA;    &lt;line class=&#34;ctl&#34; x1=&#34;406&#34; y1=&#34;181&#34; x2=&#34;428&#34; y2=&#34;181&#34;/&gt;&#xA;    &lt;line class=&#34;ctl&#34; x1=&#34;301&#34; y1=&#34;212&#34; x2=&#34;301&#34; y2=&#34;238&#34;/&gt;&#xA;  &lt;/svg&gt;&#xA;  &lt;figcaption&gt;One replica: a pod with one engine container on a GPU node. The model cache keeps weights across restarts. /dev/shm is shared memory the engine needs for tensor parallelism.&lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&#xA;&lt;p&gt;An engine ships as a container image: &lt;a href=&#34;https://docs.vllm.ai/en/latest/deployment/docker/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;&lt;code&gt;vllm/vllm-openai&lt;/code&gt;&lt;/a&gt; for vLLM, whose entrypoint is &lt;code&gt;vllm serve&lt;/code&gt;. One replica is one pod running it. This is vLLM&amp;rsquo;s own &lt;a href=&#34;https://docs.vllm.ai/en/latest/deployment/k8s/&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;Kubernetes example&lt;/a&gt;, cut down and pointed at Qwen3-8B:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Inference in production (part 4): rolling out a new model</title>
				<link>https://hiren.me/posts/inference-in-production-part-4/</link>
				<pubDate>Wed, 30 Sep 2026 12:30:00 -0700</pubDate>
				<guid>https://hiren.me/posts/inference-in-production-part-4/</guid>
				<description>&lt;p&gt;The first three parts followed a request through &lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-1/&#34; &gt;prefill and decode pools&lt;/a&gt;, &lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-2/&#34; &gt;the router and autoscaler in front of them&lt;/a&gt;, and &lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-3/&#34; &gt;what happens when the hardware under them fails&lt;/a&gt;. This part is about changing what runs on all of it: a new model, a new checkpoint of the same model, or a new engine version.&lt;/p&gt;&#xA;&lt;p&gt;A rollout does to every replica, on purpose, what the last two posts measured happening by accident. Each old replica is shut down, like &lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-3/#what-happens-to-the-requests-in-flight&#34; &gt;part 3&amp;rsquo;s failures&lt;/a&gt;, and each new one pays &lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-2/#why-a-new-replica-takes-minutes&#34; &gt;part 2&amp;rsquo;s cold start&lt;/a&gt;. A rollout goes well when users don&amp;rsquo;t notice either. The sources are project docs and operators&amp;rsquo; own write-ups. The part about draining I checked on Modal.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Inference in production (part 3): when hardware goes bad</title>
				<link>https://hiren.me/posts/inference-in-production-part-3/</link>
				<pubDate>Wed, 30 Sep 2026 11:00:00 -0700</pubDate>
				<guid>https://hiren.me/posts/inference-in-production-part-3/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-1/&#34; &gt;Part 1&lt;/a&gt; followed a request through prefill and decode pools, and &lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-2/&#34; &gt;part 2&lt;/a&gt; covered the gateway, router and autoscaler in front of them. This part is about what happens when a GPU, a node or an NVL72 tray fails under them. It covers how often that happens, how it shows up, how much of the deployment it takes out, and what becomes of the requests that were running on it. The failure data comes from published papers and NVIDIA&amp;rsquo;s docs. The part about requests in flight I measured by killing vLLM replicas on Modal. The script is in the &lt;a href=&#34;https://github.com/hirenp/kv-cache-lab&#34;  class=&#34;external-link&#34; target=&#34;_blank&#34; rel=&#34;noopener&#34;&gt;lab repo&lt;/a&gt;.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Inference in production (part 2): the gateway, the router and the autoscaler</title>
				<link>https://hiren.me/posts/inference-in-production-part-2/</link>
				<pubDate>Wed, 30 Sep 2026 00:40:00 -0700</pubDate>
				<guid>https://hiren.me/posts/inference-in-production-part-2/</guid>
				<description>&lt;p&gt;&lt;a href=&#34;https://hiren.me/posts/inference-in-production-part-1/&#34; &gt;Part 1&lt;/a&gt; followed one request through prefill and decode pools on B200 and GB200 NVL72. This part covers what sits in front of those pools: the gateway that accepts the request, the router that picks the GPUs for it, and the autoscaler that decides how many GPUs there are. The last section measures why a new replica takes minutes to become useful, with vLLM cold starts I timed on H100s. The rest comes from project docs and published benchmarks, linked where they&amp;rsquo;re used.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
