first commit
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/env/-
|
||||
value:
|
||||
name: HF_HOME
|
||||
value: /cache/huggingface
|
||||
- op: add
|
||||
path: /spec/template/spec/containers/0/volumeMounts
|
||||
value:
|
||||
- name: model-cache
|
||||
mountPath: /cache
|
||||
- op: add
|
||||
path: /spec/template/spec/volumes
|
||||
value:
|
||||
- name: model-cache
|
||||
persistentVolumeClaim:
|
||||
claimName: vllm-cache
|
||||
|
||||
12
apps/vllm-server/components/pvc-cache/kustomization.yaml
Normal file
12
apps/vllm-server/components/pvc-cache/kustomization.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1alpha1
|
||||
kind: Component
|
||||
resources:
|
||||
- pvc.yaml
|
||||
patches:
|
||||
- path: deployment-cache-patch.yaml
|
||||
target:
|
||||
group: apps
|
||||
version: v1
|
||||
kind: Deployment
|
||||
name: vllm-server
|
||||
|
||||
15
apps/vllm-server/components/pvc-cache/pvc.yaml
Normal file
15
apps/vllm-server/components/pvc-cache/pvc.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: vllm-cache
|
||||
labels:
|
||||
app.kubernetes.io/name: vllm-server
|
||||
app.kubernetes.io/component: model-cache
|
||||
app.kubernetes.io/part-of: ocdp-workload
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 100Gi
|
||||
|
||||
Reference in New Issue
Block a user