fix example in set selector

example run failed
pull/6/head
xilabao 2017-01-16 01:55:30 -06:00 committed by GitHub
parent 32e163c928
commit 8acbbb21e1
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ var (
Note: currently selectors can only be set on Service objects.`) Note: currently selectors can only be set on Service objects.`)
selectorExample = templates.Examples(` selectorExample = templates.Examples(`
# set the labels and selector before creating a deployment/service pair. # set the labels and selector before creating a deployment/service pair.
kubectl create service clusterip my-svc -o yaml --dry-run | kubectl set selector --local -f - 'environment=qa' -o yaml | kubectl create -f - kubectl create service clusterip my-svc --clusterip="None" -o yaml --dry-run | kubectl set selector --local -f - 'environment=qa' -o yaml | kubectl create -f -
kubectl create deployment my-dep -o yaml --dry-run | kubectl label --local -f - environment=qa -o yaml | kubectl create -f -`) kubectl create deployment my-dep -o yaml --dry-run | kubectl label --local -f - environment=qa -o yaml | kubectl create -f -`)
) )