@@ -721,7 +721,11 @@ clean.environment.dev.kind:
721
721
environment.dev.kubernetes.infrastructure :
722
722
ifeq ($(strip $(INFRASTRUCTURE_OVERRIDE ) ) ,true)
723
723
@echo "Deploying OpenShift Infrastructure Components"
724
- kustomize build deploy/environments/dev/kubernetes-infra | kubectl apply --server-side --force-conflicts -f -
724
+ kustomize build deploy/components/crds-gateway-api | kubectl apply --server-side --force-conflicts -f -
725
+ kustomize build deploy/components/crds-gie | kubectl apply --server-side --force-conflicts -f -
726
+ kustomize build --enable-helm deploy/components/crds-kgateway | kubectl apply --server-side --force-conflicts -f -
727
+ kustomize build --enable-helm deploy/environments/dev/kubernetes-kgateway-infra | kubectl apply --server-side --force-conflicts -f -
728
+ kubectl -n kgateway-system wait deployment/kgateway --for=condition=Available --timeout=60s
725
729
else
726
730
$(error "Error: The environment variable INFRASTRUCTURE_OVERRIDE must be set to true in order to run this target.")
727
731
endif
@@ -743,7 +747,10 @@ ifeq ($(strip $(INFRASTRUCTURE_OVERRIDE)),true)
743
747
@echo "This is extremely destructive. We'll provide 5 seconds before starting to give you a chance to cancel."
744
748
sleep 5
745
749
@echo "Tearing Down OpenShift Infrastructure Components"
746
- kustomize build deploy/environments/dev/kubernetes-infra | kubectl delete -f - || true
750
+ kustomize build --enable-helm deploy/environments/dev/kubernetes-kgateway-infra | kubectl delete -f - || true
751
+ kustomize build --enable-helm deploy/components/crds-kgateway | kubectl delete -f - || true
752
+ kustomize build deploy/components/crds-gie | kubectl delete -f - || true
753
+ kustomize build deploy/components/crds-gateway-api | kubectl delete -f - || true
747
754
else
748
755
$(error "Error: The environment variable INFRASTRUCTURE_OVERRIDE must be set to true in order to run this target.")
749
756
endif
@@ -754,33 +761,9 @@ endif
754
761
# This target deploys the GIE stack in a specific namespace for development and
755
762
# testing.
756
763
# ------------------------------------------------------------------------------
757
- VLLM_SIM_IMAGE ?= quay.io/vllm-d/vllm-sim
758
- VLLM_SIM_TAG ?= 0.0.2
759
- EPP_IMAGE ?= us-central1-docker.pkg.dev/k8s-staging-images/gateway-api-inference-extension/epp
760
- EPP_TAG ?= main
761
764
.PHONY : environment.dev.kubernetes
762
765
environment.dev.kubernetes : check-kubectl check-kustomize check-envsubst
763
- @echo " INFO: checking required vars"
764
- ifndef NAMESPACE
765
- $(error "Error: NAMESPACE is required but not set")
766
- endif
767
- export NAMESPACE=$(NAMESPACE)
768
- ifndef REGISTRY_SECRET
769
- $(error "Error: REGISTRY_SECRET is required but not set")
770
- endif
771
- export REGISTRY_SECRET=$(REGISTRY_SECRET)
772
- export VLLM_SIM_IMAGE=$(VLLM_SIM_IMAGE)
773
- export VLLM_SIM_TAG=$(VLLM_SIM_TAG)
774
- export EPP_IMAGE=$(EPP_IMAGE)
775
- export EPP_TAG=$(EPP_TAG)
776
- @echo "INFO: Creating namespace (if needed) and setting context to $(NAMESPACE)..."
777
- kubectl create namespace $(NAMESPACE) 2>/dev/null || true
778
- @echo "INFO: Deploying Development Environment in namespace $(NAMESPACE)"
779
- kustomize build deploy/environments/dev/kubernetes | envsubst | kubectl -n $(NAMESPACE) apply -f -
780
- @echo "INFO: Waiting for Pods in namespace $(NAMESPACE) to become ready"
781
- kubectl -n $(NAMESPACE) wait --for=condition=Ready --all pods --timeout=300s
782
- @echo "INFO: Waiting for Gateway in namespace $(NAMESPACE) to become ready"
783
- kubectl -n $(NAMESPACE) wait gateway/inference-gateway --for=condition=Programmed --timeout=60s
766
+ ./scripts/kubernetes-dev-env.sh 2>&1
784
767
@echo " INFO: Development environment deployed to namespace $( NAMESPACE) "
785
768
786
769
# ------------------------------------------------------------------------------
0 commit comments