Add NodePort to ServicePort

We prevent it from being set by validation
This commit is contained in:
Justin Santa Barbara
2015-05-22 17:54:19 -04:00
parent 973c2e4819
commit 2197c8da5a
11 changed files with 66 additions and 0 deletions

View File

@@ -1102,6 +1102,10 @@ type ServicePort struct {
// of v1beta3 the default value is the sames as the Port field (an
// identity map).
TargetPort util.IntOrString `json:"targetPort"`
// The port on each node on which this service is exposed.
// Default is to auto-allocate a port if the visibility of this Service requires one.
NodePort int `json:"nodePort" description:"the port on each node on which this service is exposed"`
}
// Service is a named abstraction of software service (for example, mysql) consisting of local port