gpu-zombie-test/scenario-4-fullfix/pod.yaml

28 lines
724 B
YAML

apiVersion: v1
kind: Pod
metadata:
name: gpu-zombie-fullfix
namespace: gpu-zombie-test
labels:
app: gpu-zombie-test
scenario: fullfix
spec:
nodeName: gpu-4
terminationGracePeriodSeconds: 90
restartPolicy: Never
imagePullSecrets:
- name: harbor-pull-secret
containers:
- name: worker
image: harbor.cone-chain.net/aipf/gpu-zombie-test:fullfix
imagePullPolicy: Always
resources:
limits:
nvidia.com/gpu: 1
lifecycle:
preStop:
exec:
# 공용 prestop.sh — 시나리오 3와 동일 스크립트
# worker가 SIGTERM graceful 처리하므로 fallback 경로 미트리거
command: ["/bin/sh", "-c", "/usr/local/bin/prestop.sh"]