droboticflow/k8s/qwen-node-cache.local-pv.template.yaml
2026-08-22 07:29:25 +08:00

46 lines
1.2 KiB
YAML

# Render-only template. It is deliberately not included by deploy-k8s.sh.
# First run the node disk preflight and the separate, explicit directory
# preparation Job. Do not point this PV at a root-disk or kubelet path.
apiVersion: v1
kind: PersistentVolume
metadata:
name: __QWEN_NODE_CACHE_PV_NAME__
labels:
app: droboticflow
component: qwen-node-cache
spec:
capacity:
storage: __QWEN_NODE_CACHE_SIZE__
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storageClassName: droboticflow-qwen-node-local
local:
path: __QWEN_NODE_CACHE_HOST_PATH__
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- __QWEN_NODE_CACHE_NODE_NAME__
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: __QWEN_NODE_CACHE_PVC_NAME__
namespace: __QWEN_NODE_CACHE_NAMESPACE__
labels:
app: droboticflow
component: qwen-node-cache
spec:
accessModes:
- ReadWriteOnce
storageClassName: droboticflow-qwen-node-local
volumeName: __QWEN_NODE_CACHE_PV_NAME__
resources:
requests:
storage: __QWEN_NODE_CACHE_SIZE__