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

CRD implementation #20

Merged
merged 6 commits into from
Oct 21, 2024
Merged

CRD implementation #20

merged 6 commits into from
Oct 21, 2024

Conversation

kfswain
Copy link
Collaborator

@kfswain kfswain commented Oct 16, 2024

This PR is rather large but much of this is generated code from these 2 tools:

The actual changes were:

  • Wiring up code-generator to operate with kubebuilder on the make generate command
  • Populating the API def with the spec as defined in the proposal API Proposal #5

Controller logic for the LLMServerPool is intended to be handled by gateway Implementations: #19
And Controller logic for LLMService will be handled by the ext-proc deployment

…builder output to be top level. Left much of the boilerplate for historical reference. Would like to delete much of the config
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 16, 2024
@kfswain
Copy link
Collaborator Author

kfswain commented Oct 16, 2024

/label tide/merge-method-squash

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. labels Oct 16, 2024
… a Service objectRef, and regenerating output. Also updating proposal to reflect this change.
@Joffref
Copy link

Joffref commented Oct 17, 2024

/assign

Failed my first one, sorry for the abusive ping

@k8s-ci-robot
Copy link
Contributor

@Joffref: GitHub didn't allow me to assign the following users: reminder, --, Just, as, a.

Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign -- Just as a reminder

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ahg-g
Copy link
Contributor

ahg-g commented Oct 17, 2024

/assign @Joffref

PROJECT Outdated Show resolved Hide resolved
PROJECT Outdated Show resolved Hide resolved
PROJECT Outdated Show resolved Hide resolved
PROJECT Outdated Show resolved Hide resolved
PROJECT Outdated Show resolved Hide resolved
api/v1alpha1/llmserverpool_types.go Outdated Show resolved Hide resolved
api/v1alpha1/llmservice_types.go Outdated Show resolved Hide resolved
api/README.md Outdated
- kubectl version v1.11.3+.
- Access to a Kubernetes v1.11.3+ cluster.

### To Deploy on the cluster
Copy link
Contributor

Choose a reason for hiding this comment

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

can we update this with the instructions to deploy the CRDs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added to the top-level README

hack/boilerplate.go.txt Outdated Show resolved Hide resolved
cmd/main.go Outdated Show resolved Hide resolved
// that should be included in the LLMServerPool. ModelServers should not
// be with any other Service or LLMServerPool, that behavior is not supported
// and will result in sub-optimal utilization.
ModelServerSelector metav1.LabelSelector `json:"modelServerSelector,omitempty"`
Copy link

@skonto skonto Oct 18, 2024

Choose a reason for hiding this comment

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

Thinking out loud. Does that imply we manage pods availability directly eg. readiness? For example in a multi-host setup probably we could also select a headless service to route to.
Also would it add any extra operation flexibility if we allowed more than one selectors?

Copy link
Contributor

Choose a reason for hiding this comment

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

The selector defines the pods that are running the servers, the expectation is that those pods define a readiness probe and this readiness status is reflected on the pod status; the expectation from the extension is to send traffic to the pods with status ready.

Also would it add any extra operation flexibility if we allowed more than one selectors?

The LabelSelector type is very flexible already, see https://github.com/kubernetes/kubernetes/blob/81ce66f059ec9c07cccf4069c8913e31959dea78/staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go#L1256

@ahg-g
Copy link
Contributor

ahg-g commented Oct 21, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 21, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, kfswain

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 21, 2024
@k8s-ci-robot k8s-ci-robot merged commit 0d337bd into kubernetes-sigs:main Oct 21, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants