mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 02:41:25 +00:00
Merge pull request #80664 from thockin/document-port-names
Update docs for service/endpoints port names
This commit is contained in:
commit
e2e5a9e9b7
4
api/openapi-spec/swagger.json
generated
4
api/openapi-spec/swagger.json
generated
@ -7500,7 +7500,7 @@
|
||||
"description": "EndpointPort is a tuple that describes a single port.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.",
|
||||
"description": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
|
||||
"type": "string"
|
||||
},
|
||||
"port": {
|
||||
@ -11349,7 +11349,7 @@
|
||||
"description": "ServicePort contains information on service's port.",
|
||||
"properties": {
|
||||
"name": {
|
||||
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.",
|
||||
"description": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
||||
"type": "string"
|
||||
},
|
||||
"nodePort": {
|
||||
|
@ -1001,7 +1001,8 @@ message EndpointAddress {
|
||||
|
||||
// EndpointPort is a tuple that describes a single port.
|
||||
message EndpointPort {
|
||||
// The name of this port (corresponds to ServicePort.Name).
|
||||
// The name of this port. This must match the 'name' field in the
|
||||
// corresponding ServicePort.
|
||||
// Must be a DNS_LABEL.
|
||||
// Optional only if one port is defined.
|
||||
// +optional
|
||||
@ -4506,8 +4507,9 @@ message ServiceList {
|
||||
// ServicePort contains information on service's port.
|
||||
message ServicePort {
|
||||
// The name of this port within the service. This must be a DNS_LABEL.
|
||||
// All ports within a ServiceSpec must have unique names. This maps to
|
||||
// the 'Name' field in EndpointPort objects.
|
||||
// All ports within a ServiceSpec must have unique names. When considering
|
||||
// the endpoints for a Service, this must match the 'name' field in the
|
||||
// EndpointPort.
|
||||
// Optional if only one ServicePort is defined on this service.
|
||||
// +optional
|
||||
optional string name = 1;
|
||||
|
@ -3914,8 +3914,9 @@ type ServiceSpec struct {
|
||||
// ServicePort contains information on service's port.
|
||||
type ServicePort struct {
|
||||
// The name of this port within the service. This must be a DNS_LABEL.
|
||||
// All ports within a ServiceSpec must have unique names. This maps to
|
||||
// the 'Name' field in EndpointPort objects.
|
||||
// All ports within a ServiceSpec must have unique names. When considering
|
||||
// the endpoints for a Service, this must match the 'name' field in the
|
||||
// EndpointPort.
|
||||
// Optional if only one ServicePort is defined on this service.
|
||||
// +optional
|
||||
Name string `json:"name,omitempty" protobuf:"bytes,1,opt,name=name"`
|
||||
@ -4124,7 +4125,8 @@ type EndpointAddress struct {
|
||||
|
||||
// EndpointPort is a tuple that describes a single port.
|
||||
type EndpointPort struct {
|
||||
// The name of this port (corresponds to ServicePort.Name).
|
||||
// The name of this port. This must match the 'name' field in the
|
||||
// corresponding ServicePort.
|
||||
// Must be a DNS_LABEL.
|
||||
// Optional only if one port is defined.
|
||||
// +optional
|
||||
|
@ -500,7 +500,7 @@ func (EndpointAddress) SwaggerDoc() map[string]string {
|
||||
|
||||
var map_EndpointPort = map[string]string{
|
||||
"": "EndpointPort is a tuple that describes a single port.",
|
||||
"name": "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.",
|
||||
"name": "The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.",
|
||||
"port": "The port number of the endpoint.",
|
||||
"protocol": "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.",
|
||||
}
|
||||
@ -2152,7 +2152,7 @@ func (ServiceList) SwaggerDoc() map[string]string {
|
||||
|
||||
var map_ServicePort = map[string]string{
|
||||
"": "ServicePort contains information on service's port.",
|
||||
"name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.",
|
||||
"name": "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service.",
|
||||
"protocol": "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.",
|
||||
"port": "The port that will be exposed by this service.",
|
||||
"targetPort": "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service",
|
||||
|
Loading…
Reference in New Issue
Block a user