-
Notifications
You must be signed in to change notification settings - Fork 45
docs: Document runpodctl template registry auth and port label flags #774
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
Changes from all commits
27008f7
9bd95a8
10ce502
9ce0701
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,7 +94,7 @@ Number of results to skip for pagination. | |
|
|
||
| ### Get template details | ||
|
|
||
| Get detailed information about a specific template, including README, environment variables, and exposed ports: | ||
| Get detailed information about a specific template, including README, environment variables, and exposed ports (with their labels): | ||
|
|
||
| ```bash | ||
| runpodctl template get <template-id> | ||
|
|
@@ -110,6 +110,12 @@ runpodctl template create --name "my-template" --image "runpod/pytorch:2.8.0-py3 | |
|
|
||
| # Create a Serverless template | ||
| runpodctl template create --name "my-serverless-template" --image "my-image:latest" --serverless | ||
|
|
||
| # Create a template that pulls from a private registry | ||
| runpodctl template create --name "private-gpu" --image "registry.example.com/team/image:tag" --registry-auth-id <registry-auth-id> | ||
|
|
||
| # Create a template with labeled ports | ||
| runpodctl template create --name "dev" --image "my-image:latest" --ports "22/tcp,8888/http" --port-labels "22=ssh,8888=jupyter lab" | ||
| ``` | ||
|
|
||
| <Note> | ||
|
|
@@ -144,6 +150,14 @@ Volume mount path. | |
| Comma-separated list of ports to expose (e.g., `8888/http,22/tcp`). | ||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--port-labels" type="string"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Documented the new Source: runpod/runpodctl#290 |
||
| Display names for the ports the template exposes, shown next to each port in the Runpod console. Provide comma-separated `port=name` pairs (e.g., `22=ssh,8888=jupyter lab`) or a JSON object (e.g., `{"22":"ssh","8888":"jupyter lab"}`). This flag requires `--ports`, and every labeled port must also appear in `--ports`. The pair form splits on commas, so use the JSON form for any label name that contains a comma. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Documented the comma limitation from Source: https://github.com/runpod/runpodctl/blob/main/cmd/template/port_labels.go |
||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--registry-auth-id" type="string"> | ||
| ID of the container registry authentication used to pull the image from a private registry. Find the ID with [`runpodctl registry list`](/runpodctl/reference/runpodctl-registry). | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Documented the new Source: runpod/runpodctl#290 |
||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--env" type="string"> | ||
| Environment variables as a JSON object (e.g., `'{"KEY":"value"}'`). | ||
| </ResponseField> | ||
|
|
@@ -169,7 +183,14 @@ Template README content. | |
| Update an existing template: | ||
|
|
||
| ```bash | ||
| # Rename a template | ||
| runpodctl template update <template-id> --name "new-name" | ||
|
|
||
| # Attach registry credentials | ||
| runpodctl template update <template-id> --registry-auth-id <registry-auth-id> | ||
|
|
||
| # Update port labels (or pass "" to clear them) | ||
| runpodctl template update <template-id> --port-labels "22=ssh,8888=jupyter lab" | ||
| ``` | ||
|
|
||
| #### Update flags | ||
|
|
@@ -186,6 +207,14 @@ New Docker image name. | |
| New comma-separated list of ports. | ||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--port-labels" type="string"> | ||
| New display names for the template's exposed ports, as `port=name` pairs or a JSON object. Pass an empty value (`--port-labels ""`) to remove all port labels. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Documented the Source: runpod/runpodctl#290 |
||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--registry-auth-id" type="string"> | ||
| New container registry authentication ID for pulling private images. Pass an empty value (`--registry-auth-id ""`) to detach registry credentials from the template. | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Documented the Source: runpod/runpodctl#290 |
||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--env" type="string"> | ||
| New environment variables as a JSON object. | ||
| </ResponseField> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR #297 makes
GetTemplatebackfillportsConfigfrom GraphQL sotemplate getnow echoes port labels; updated the "Get template details" description to mention labels are shown. The backfill lives ininternal/api/templates.go.Source: runpod/runpodctl#297