doc: Add example for restarting all deployments in a namespace

Kubernetes-commit: f4fc4b16b1d9837b4980850480421da318db04eb
This commit is contained in:
ithrael 2023-09-01 19:25:54 +08:00 committed by Kubernetes Publisher
parent e01bb717e0
commit 3225b852aa
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ var (
Resource rollout will be restarted.`))
restartExample = templates.Examples(`
# Restart all deployments in default namespace
kubectl rollout restart deployment
# Restart all deployments in test-namespace namespace
kubectl rollout restart deployment -n test-namespace
# Restart a deployment
kubectl rollout restart deployment/nginx