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 host override to query specific pod #86

Merged
merged 17 commits into from
Aug 21, 2024
Merged

Add host override to query specific pod #86

merged 17 commits into from
Aug 21, 2024

Conversation

varungup90
Copy link
Collaborator

Query specific pod by including pod's ip address and port

curl -v http://localhost:8888/v1/chat/completions \
  -H "target-pod: 10.244.1.3:8000" \
  -H "user: varun" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer any_key" \
  -d '{
     "model": "llama2-70b",
     "messages": [{"role": "user", "content": "Say this is a test!"}],
     "temperature": 0.7
   }'

Copy link
Collaborator

@Jeffwan Jeffwan left a comment

Choose a reason for hiding this comment

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

overall looks good to me

@Jeffwan
Copy link
Collaborator

Jeffwan commented Aug 18, 2024

I may miss some of the contexts, I think our goal is to implement the routing part. Why do we care the target ip support?

@varungup90
Copy link
Collaborator Author

I may miss some of the contexts, I think our goal is to implement the routing part. Why do we care the target ip support?

Routing algorithm will select a pod, and target-ip is to forward request to that pod.

@Jeffwan
Copy link
Collaborator

Jeffwan commented Aug 21, 2024

/lgtm

@Jeffwan Jeffwan merged commit 851bd69 into main Aug 21, 2024
1 check passed
@Jeffwan Jeffwan deleted the add-patch-policy branch August 21, 2024 00:04
gangmuk pushed a commit that referenced this pull request Jan 25, 2025
* Add rpm/tpm extension proc plugin

* add license header

* add extproc auto creation with httproute

* add envoy patch policy

* update go.mod

* address comments

* test

* routing to specific pod

* ext proc code refactoring

* nit

* bug fix for rpm/tpm check

* remove unwanted file

* add random router

* for now rename ratelimiter dir -> gateway for monolithic plugin

---------

Co-authored-by: varungupta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants