-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1_container_port.go
29 lines (22 loc) · 1.14 KB
/
v1_container_port.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// ContainerPort represents a network port in a single container.
type V1ContainerPort struct {
// Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
ContainerPort int32 `json:"containerPort"`
// What host IP to bind the external port to.
HostIP string `json:"hostIP,omitempty"`
// Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.
HostPort int32 `json:"hostPort,omitempty"`
// If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.
Name string `json:"name,omitempty"`
// Protocol for port. Must be UDP or TCP. Defaults to \"TCP\".
Protocol string `json:"protocol,omitempty"`
}