Allocated device health

할당 장치 상태

Read the health of assigned devices such as GPUs from pod status.

···
html
<div class="stage" data-phase="0"><div class="title">POD · ALLOCATED DEVICES</div><div class="devices"><div class="panel gpu">GPU 0 <b>Healthy</b></div><div class="panel gpu fault">GPU 1 <b>Healthy</b></div></div><div class="panel diagnosis">pod status · devices available</div></div>
css
.stage{width:min(94vw,760px);height:min(88vh,330px);padding:clamp(9px,2.6vmin,20px);border:1px solid var(--line);border-radius:14px;background:var(--surface);font:600 clamp(12px,2.5vmin,16px)/1.3 "Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo",sans-serif;display:flex;flex-direction:column;gap:clamp(6px,1.7vmin,12px);overflow:hidden;position:relative}.stage *{min-width:0}.stage .title{color:var(--accent);font-weight:800}.stage .sub{color:var(--muted)}.stage .row{display:flex;align-items:center;gap:clamp(5px,1.6vmin,12px)}.stage .panel{border:1px solid var(--line);border-radius:8px;background:var(--bg);padding:clamp(6px,1.6vmin,12px)}.stage .mono{font-family:ui-monospace,SFMono-Regular,monospace;font-size:clamp(12px,2.5vmin,15px)}.stage .grow{flex:1}.stage .on{color:var(--accent)}.devices{flex:1;display:flex;align-items:center;gap:8px}.gpu{width:50%;display:flex;justify-content:space-between;align-items:center;gap:5px}.gpu b{color:var(--accent)}.diagnosis{color:var(--muted)}.stage[data-phase="1"] .fault,.stage[data-phase="2"] .fault{border-color:var(--accent-3);background:color-mix(in srgb,var(--accent-3) 14%,var(--surface))}.stage[data-phase="1"] .fault b,.stage[data-phase="2"] .fault b{font-size:0}.stage[data-phase="1"] .fault b:after,.stage[data-phase="2"] .fault b:after{content:'Unhealthy';font-size:clamp(12px,2.5vmin,16px);color:var(--accent-3)}.stage[data-phase="1"] .diagnosis,.stage[data-phase="2"] .diagnosis{font-size:0;border-color:var(--accent-3)}.stage[data-phase="1"] .diagnosis:after,.stage[data-phase="2"] .diagnosis:after{content:'pod status · device fault';font-size:clamp(12px,2.5vmin,16px);color:var(--accent-3)}
js
const stage=document.querySelector('.stage');let phase=0;function advance(){phase=(phase+1)%3;stage.dataset.phase=String(phase)}const timer=setInterval(advance,1200);stage.addEventListener('pointerdown',()=>{clearInterval(timer);advance()})

Allocated device health exposes the condition of specialized hardware assigned to a container in pod status. It helps distinguish a crash loop caused by hardware from an application bug.

The demo changes one device to Unhealthy and updates the diagnosis. The allocatedResourcesStatus field is beta in Kubernetes 1.36 and covers devices from plugins and DRA.

When to use

Use it to connect failed GPU workloads with hardware health.

Open as page ↗