@@ -77,7 +77,7 @@ re\-use the labels from the resource it exposes.
...
@@ -77,7 +77,7 @@ re\-use the labels from the resource it exposes.
An inline JSON override for the generated object. If this is non\-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
An inline JSON override for the generated object. If this is non\-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
.PP
.PP
\fB\-\-port\fP=\-1
\fB\-\-port\fP=""
The port that the service should serve on. Copied from the resource being exposed, if unspecified
The port that the service should serve on. Copied from the resource being exposed, if unspecified
-o, --output="": Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md].
-o, --output="": Output format. One of: json|yaml|wide|name|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://releases.k8s.io/HEAD/docs/user-guide/jsonpath.md].
--output-version="": Output the formatted object with the given version (default api-version).
--output-version="": Output the formatted object with the given version (default api-version).
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
--overrides="": An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.
--port=-1: The port that the service should serve on. Copied from the resource being exposed, if unspecified
--port="": The port that the service should serve on. Copied from the resource being exposed, if unspecified
--protocol="TCP": The network protocol for the service to be created. Default is 'tcp'.
--protocol="TCP": The network protocol for the service to be created. Default is 'tcp'.
--selector="": A label selector to use for this service. If empty (the default) infer the selector from the replication controller.
--selector="": A label selector to use for this service. If empty (the default) infer the selector from the replication controller.
--session-affinity="": If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP'
--session-affinity="": If non-empty, set the session affinity for the service to this; legal values: 'None', 'ClientIP'
cmd.Flags().String("generator","service/v2","The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'.")
cmd.Flags().String("generator","service/v2","The name of the API generator to use. There are 2 generators: 'service/v1' and 'service/v2'. The only difference between them is that service port in v1 is named 'default', while it is left unnamed in v2. Default is 'service/v2'.")
cmd.Flags().String("protocol","TCP","The network protocol for the service to be created. Default is 'tcp'.")
cmd.Flags().String("protocol","TCP","The network protocol for the service to be created. Default is 'tcp'.")
cmd.Flags().Int("port",-1,"The port that the service should serve on. Copied from the resource being exposed, if unspecified")
cmd.Flags().String("port","","The port that the service should serve on. Copied from the resource being exposed, if unspecified")
cmd.Flags().String("type","","Type for this service: ClusterIP, NodePort, or LoadBalancer. Default is 'ClusterIP'.")
cmd.Flags().String("type","","Type for this service: ClusterIP, NodePort, or LoadBalancer. Default is 'ClusterIP'.")
// TODO: remove create-external-load-balancer in code on or after Aug 25, 2016.
// TODO: remove create-external-load-balancer in code on or after Aug 25, 2016.
cmd.Flags().Bool("create-external-load-balancer",false,"If true, create an external load balancer for this service (trumped by --type). Implementation is cloud provider dependent. Default is 'false'.")
cmd.Flags().Bool("create-external-load-balancer",false,"If true, create an external load balancer for this service (trumped by --type). Implementation is cloud provider dependent. Default is 'false'.")