Commit aef11345 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39936 from xilabao/patch-4

Automatic merge from submit-queue (batch tested with PRs 39947, 39936, 39902, 39859, 39915) fix example in set selector
parents 64b39af3 8acbbb21
...@@ -65,7 +65,7 @@ var ( ...@@ -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 -`)
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment