Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kubectl patch example with quotes on Windows #18853

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ the corresponding `PersistentVolume` is not be deleted. Instead, it is moved to

where `<your-pv-name>` is the name of your chosen PersistentVolume.

*Note* if you are running `kubectl` on Windows, you'd need to use double quotes on the
command line and thus escape the inner double quotes like this:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind altering that text to use a {{< note >}} shortcode? That fits in better with the website style guidelines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @sftim , I've placed the note inside a shortcode.


```shell
kubectl patch pv <your-pv-name> -p "{\"spec\":{\"persistentVolumeReclaimPolicy\":\"Retain\"}}"
merkata marked this conversation as resolved.
Show resolved Hide resolved
```

1. Verify that your chosen PersistentVolume has the right policy:

```shell
Expand Down