diff --git a/prototype/systemPrototypes.go b/prototype/systemPrototypes.go index 3526db6e02bf11f9fd12cc46c49d32e694bdf4be..cbe40c85834cc57eccbb809a9d1eb0d41552ed03 100644 --- a/prototype/systemPrototypes.go +++ b/prototype/systemPrototypes.go @@ -46,14 +46,18 @@ namespace.`, Name: "io.ksonnet.pkg.single-port-service", Params: ParamSchemas{ RequiredParam("name", "serviceName", "Name of the service", String), - RequiredParam("targetLabelSelector", "selector", "Label for the service to target (e.g., 'app: MyApp').", Object), + RequiredParam("targetLabelSelector", "selector", `Label for the service to target (e.g., "{app: 'MyApp'}").`, Object), RequiredParam("servicePort", "port", "Port for the service to expose.", NumberOrString), RequiredParam("targetPort", "port", "Port for the service target.", NumberOrString), OptionalParam("protocol", "protocol", "Protocol to use (either TCP or UDP).", "TCP", String), }, Template: SnippetSchema{ Description: `A service that exposes 'servicePort', and directs traffic -to 'targetLabelSelector', at 'targetPort'.`, +to 'targetLabelSelector', at 'targetPort'. Since 'targetLabelSelector' is an +object literal that specifies which labels the service is meant to target, this +will typically look something like: + + ksonnet prototype use service --targetLabelSelector "{app: 'nginx'}" [...]`, ShortDescription: `Service that exposes a single port`, YAMLBody: []string{ "kind: Service",