Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VKE IPv4 Testing Cluster Config #537

Merged
merged 4 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,14 @@ deploy-vke: manifests kustomize ## Deploy controller to the K8s cluster specifie
undeploy-vke: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/overlays/vke/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -

.PHONY: deploy-vke-ipv4
deploy-vke-ipv4: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
$(KUSTOMIZE) build config/overlays/vke-ipv4/default | $(KUBECTL) create -f -

.PHONY: undeploy-vke-ipv4
undeploy-vke-ipv4: kustomize ## Undeploy controller from the K8s cluster specified in ~/.kube/config. Call with ignore-not-found=true to ignore resource not found errors during deletion.
$(KUSTOMIZE) build config/overlays/vke-ipv4/default | $(KUBECTL) delete --ignore-not-found=$(ignore-not-found) -f -

##@ Dependencies

## Location to install dependencies to
Expand Down
15 changes: 15 additions & 0 deletions config/overlays/vke-ipv4/default/ipv4_patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: aibrix-custom-proxy-config
namespace: aibrix-system
spec:
provider:
kubernetes:
envoyService:
patch:
value:
spec:
ipFamilies:
- IPv4 # Only IPv4
ipFamilyPolicy: SingleStack # Changed from PreferDualStack to SingleStack
22 changes: 22 additions & 0 deletions config/overlays/vke-ipv4/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
- ../../vke/default

patches:
- path: ipv4_patch.yaml
target:
kind: EnvoyProxy
name: aibrix-custom-proxy-config

images:
- name: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/plugins
newTag: v0.2.0-rc.1
- name: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/users
newTag: v0.2.0-rc.1
- name: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/controller-manager
newTag: v0.2.0-rc.1
- name: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/runtime
newTag: v0.2.0-rc.1

2 changes: 1 addition & 1 deletion config/overlays/vke/default/gateway/envoyproxy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: EnvoyProxy
metadata:
name: custom-proxy-config
name: aibrix-custom-proxy-config
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

em. I didn't see namePrefix configuration in your default/kustomization.yaml. can you double check this part? Does other configuration also have prefix aibrix-?

namespace: aibrix-system
spec:
provider:
Expand Down
4 changes: 2 additions & 2 deletions config/overlays/vke/default/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ images:
- name: aibrix/controller-manager
newName: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/controller-manager
newTag: v0.1.1
- name: aibrix/gpu-optimizer
newName: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/gpu-optimizer
- name: aibrix/runtime
newName: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/runtime
# not release yet.
newTag: nightly
8 changes: 8 additions & 0 deletions development/app/config/vke/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
resources:
- ../mock
- ../templates/podautoscaler

images:
- name: aibrix/vllm-mock
newName: aibrix-container-registry-cn-beijing.cr.volces.com/aibrix/vllm-mock
newTag: nightly
Loading