mirror of https://github.com/k3s-io/k3s
parent
32e163c928
commit
8acbbb21e1
|
@ -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 -`)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue