Skip to content

Commit

Permalink
Clarify host_port field in CRI
Browse files Browse the repository at this point in the history
Kubernetes-commit: d5c072117dbe97893e48d8d73f097e722bfecfe4
  • Loading branch information
HirazawaUi authored and k8s-publishing-bot committed Mar 1, 2025
1 parent 084fa1d commit e7dc3e2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion pkg/apis/runtime/v1/api.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 10 additions & 1 deletion pkg/apis/runtime/v1/api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,16 @@ message PortMapping {
Protocol protocol = 1;
// Port number within the container. Default: 0 (not specified).
int32 container_port = 2;
// Port number on the host. Default: 0 (not specified).
// Port number on the host to map the container port to.
//
// * Valid host port range is 1-65535.
// * The value 0 has explicit semantic meaning: it indicates NO host port should be allocated.
// * The value 0 does NOT indicate dynamic port allocation. Future implementations
// of dynamic allocation will use different values/semantics.
// * Implementations MUST handle the case where this field is explicitly set to 0,
// This field SHOULD be omitted when no port is required.
//
// Default: If omitted, container port will not be exposed on the host.
int32 host_port = 3;
// Host IP.
string host_ip = 4;
Expand Down

0 comments on commit e7dc3e2

Please sign in to comment.