@@ -8,7 +8,7 @@ NAMESPACE="llm-d"
88PROVISION_MINIKUBE=false
99PROVISION_MINIKUBE_GPU=false
1010USE_MINIKUBE_STORAGE=false
11- STORAGE_SIZE=" 7Gi "
11+ STORAGE_SIZE=" 15Gi "
1212STORAGE_CLASS=" efs-sc"
1313DELETE_MINIKUBE=false
1414ACTION=" install"
@@ -158,7 +158,7 @@ validate_hf_token() {
158158# ## MINIKUBE HANDLERS ###
159159provision_minikube () {
160160 log_info " 🌱 Provisioning Minikube cluster..."
161- minikube start --nodes=3
161+ minikube start
162162 log_success " 🚀 Minikube started."
163163}
164164
@@ -167,8 +167,7 @@ provision_minikube_gpu() {
167167 minikube start \
168168 --driver docker \
169169 --container-runtime docker \
170- --gpus all \
171- --nodes=3
170+ --gpus all
172171 log_success " 🚀 Minikube GPU cluster started."
173172}
174173
@@ -248,10 +247,8 @@ install() {
248247 fi
249248 log_success " ✅ Job manifest patched"
250249
251- # This is where all minicube scenarios use glusterfs sc and existing kube clusters use model-storage-rwx-pvc.yaml
252250 log_info " 💾 Provisioning model storage…"
253251 if [[ " ${USE_MINIKUBE_STORAGE} " == " true" ]]; then
254- ensure_gluster_addon_enabled
255252 # this creates both the hostPath PV and the matching PVC
256253 setup_minikube_storage
257254 log_success " ✅ PVC created from model-storage-rwx-pvc-minikube.yaml"
@@ -307,7 +304,7 @@ kind: PersistentVolume
307304metadata:
308305 name: redis-hostpath-pv
309306spec:
310- storageClassName: glusterfile
307+ storageClassName: manual
311308 capacity:
312309 storage: 5Gi
313310 accessModes:
@@ -320,10 +317,10 @@ spec:
320317apiVersion: v1
321318kind: PersistentVolumeClaim
322319metadata:
323- name: redis-pvc
320+ name: redis-data-redis-master
324321 namespace: ${NAMESPACE}
325322spec:
326- storageClassName: glusterfile
323+ storageClassName: manual
327324 accessModes:
328325 - ReadWriteMany
329326 resources:
@@ -340,17 +337,17 @@ EOF
340337}
341338
342339setup_minikube_storage () {
343- log_info " 📦 Setting up Minikube Gluster RWX Shared Storage..."
340+ log_info " 📦 Setting up Minikube hostPath RWX Shared Storage..."
344341 log_info " 🔄 Creating PV and PVC for llama model..."
345342kubectl apply -f - << EOF
346343apiVersion: v1
347344kind: PersistentVolume
348345metadata:
349346 name: llama-hostpath-pv
350347spec:
351- storageClassName: glusterfile
348+ storageClassName: manual
352349 capacity:
353- storage: 7Gi
350+ storage: ${STORAGE_SIZE}
354351 accessModes:
355352 - ReadWriteMany
356353 persistentVolumeReclaimPolicy: Retain
@@ -364,30 +361,17 @@ metadata:
364361 name: llama-3.2-3b-instruct-pvc
365362 namespace: ${NAMESPACE}
366363spec:
367- storageClassName: glusterfile
364+ storageClassName: manual
368365 accessModes:
369366 - ReadWriteMany
370367 resources:
371368 requests:
372- storage: 7Gi
369+ storage: ${STORAGE_SIZE}
373370 volumeName: llama-hostpath-pv
374371EOF
375372 log_success " ✅ llama model PV and PVC created."
376373}
377374
378- ensure_gluster_addon_enabled () {
379- if [[ " ${USE_MINIKUBE_STORAGE} " == " true" ]]; then
380- log_info " 🔍 Checking if Gluster addon is enabled in Minikube..."
381- if ! minikube addons list | grep -q ' storage-provisioner-gluster.*disabled' ; then
382- log_success " ✅ Gluster addon already enabled."
383- else
384- log_info " 📦 Enabling Gluster addon for Minikube..."
385- minikube addons enable storage-provisioner-gluster
386- log_success " ✅ Gluster addon enabled."
387- fi
388- fi
389- }
390-
391375clone_gaie_repo () {
392376 if [[ ! -d gateway-api-inference-extension ]]; then
393377 git clone https://github.com/neuralmagic/gateway-api-inference-extension.git
0 commit comments