-
Notifications
You must be signed in to change notification settings - Fork 16
Move inline YAML doc examples to real manifest files #329
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,20 @@ | ||
| # Modelplane composes a ModelEndpoint per ModelReplica automatically. Create one | ||
| # manually only to register an external inference endpoint with a ModelService, | ||
| # for example a SaaS provider like Together or BaseTen. | ||
| # | ||
| # Give it a label of your own for a ModelService to select on | ||
| # (modelplane.ai/external-provider is a readable convention), and set | ||
| # url/rewritePath to the provider's OpenAI-compatible endpoint. | ||
| apiVersion: modelplane.ai/v1alpha1 | ||
| kind: ModelEndpoint | ||
| metadata: | ||
| name: qwen3-coder-together | ||
| name: kimi-k2-together | ||
| namespace: ml-team | ||
| labels: | ||
| # 1. A label of your own for a ModelService to select on. Any label | ||
| # works; modelplane.ai/external-provider is a readable convention. | ||
| modelplane.ai/external-provider: together | ||
| spec: | ||
| # 2. The provider's base URL. | ||
| url: https://api.together.xyz/ | ||
| # 3. The path to rewrite requests to. A ModelService receives requests at | ||
| # /<namespace>/<service>/v1/... and strips only the /<namespace>/<service>/ | ||
| # prefix, so an OpenAI-compatible provider that already serves /v1/... | ||
| # takes just /. | ||
| rewritePath: / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # A ModelService's endpoints list combines: one entry can select your own | ||
| # deployment's replicas while another selects an external ModelEndpoint, so | ||
| # overflow or break-glass traffic to a SaaS provider sits behind the same URL | ||
| # as your own replicas. | ||
| apiVersion: modelplane.ai/v1alpha1 | ||
| kind: ModelService | ||
| metadata: | ||
| name: kimi-k2 | ||
| namespace: ml-team | ||
| spec: | ||
| endpoints: | ||
| - selector: | ||
| matchLabels: | ||
| modelplane.ai/deployment: kimi-k2 # your own replicas | ||
| - selector: | ||
| matchLabels: | ||
| modelplane.ai/external-provider: together # the endpoint above |
14 changes: 14 additions & 0 deletions
14
docs/manifests/examples/collecting-engine-metrics/podmonitor.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| apiVersion: monitoring.coreos.com/v1 | ||
| kind: PodMonitor | ||
| metadata: | ||
| name: qwen2-5-0-5b-metrics | ||
| namespace: default | ||
| spec: | ||
| selector: | ||
| matchExpressions: | ||
| - key: modelplane.ai/serving # carried by every serving pod | ||
| operator: Exists | ||
| podMetricsEndpoints: | ||
| - targetPort: 8000 | ||
| path: /metrics | ||
| interval: 30s | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| apiVersion: modelplane.ai/v1alpha1 | ||
| kind: ModelDeployment | ||
| metadata: | ||
| name: qwen-demo | ||
| namespace: ml-team | ||
| spec: | ||
| replicas: 1 | ||
| engines: | ||
| - name: qwen | ||
| members: | ||
| - role: Standalone | ||
| nodeSelector: | ||
| devices: | ||
| - name: gpu | ||
| count: 1 | ||
| selectors: | ||
| - cel: device.capacity["gpu.nvidia.com"].memory.compareTo(quantity("20Gi")) >= 0 | ||
| template: | ||
| spec: | ||
| containers: | ||
| - name: engine | ||
| image: vllm/vllm-openai:v0.23.0 | ||
| args: ["--model=Qwen/Qwen2.5-0.5B-Instruct"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| apiVersion: modelplane.ai/v1alpha1 | ||
| kind: ModelService | ||
| metadata: | ||
| name: qwen | ||
| namespace: ml-team | ||
| spec: | ||
| endpoints: | ||
| - selector: | ||
| matchLabels: | ||
| modelplane.ai/deployment: qwen-demo |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.