diff --git a/modules/oc-by-example-content.adoc b/modules/oc-by-example-content.adoc index 9ad2a60bde..db896d3950 100644 --- a/modules/oc-by-example-content.adoc +++ b/modules/oc-by-example-content.adoc @@ -249,7 +249,13 @@ Autoscale a deployment config, deployment, replica set, stateful set, or replica oc autoscale deployment foo --min=2 --max=10 # Auto scale a replication controller "foo", with the number of pods between 1 and 5, target CPU utilization at 80% - oc autoscale rc foo --max=5 --cpu-percent=80 + oc autoscale rc foo --max=5 --cpu=80% + + # Auto scale a deployment "bar", with the number of pods between 3 and 6, target average CPU of 500m and memory of 200Mi + oc autoscale deployment bar --min=3 --max=6 --cpu=500m --memory=200Mi + + # Auto scale a deployment "bar", with the number of pods between 2 and 8, target CPU utilization 60% and memory utilization 70% + oc autoscale deployment bar --min=3 --max=6 --cpu=60% --memory=70% ---- @@ -1872,6 +1878,9 @@ Log in to a server # Log in to the given server through a browser oc login localhost:8443 --web --callback-port 8280 + # Log in to the given server through a browser without opening it automatically (print URL only) + oc login localhost:8443 --web --auto-open-browser=false --callback-port 8280 + # Log in to the external OIDC issuer through Auth Code + PKCE by starting a local server listening on port 8080 oc login localhost:8443 --exec-plugin=oc-oidc --client-id=client-id --extra-scopes=email,profile --callback-port=8080 ----