doc: Add example for restarting all deployments in a namespace

This commit is contained in:
ithrael 2023-09-01 19:25:54 +08:00
parent 79466886a1
commit f4fc4b16b1

View File

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