Skip to content

Commit 48b64f8

Browse files
committed
clean up the environment
1 parent 67c20b3 commit 48b64f8

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

content/en/docs/tasks/configure-pod-container/configure-persistent-volume-storage.md

+16
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,22 @@ hostPath volume:
160160

161161
Hello from Kubernetes storage
162162

163+
## Clean up
164+
165+
Delete the Pod, the PersistentVolumeClaim and the PersistentVolume:
166+
167+
```shell
168+
kubectl delete pod task-pv-pod
169+
kubectl delete pvc task-pv-claim
170+
kubectl delete pv task-pv-volume
171+
```
172+
173+
Remove the file:
174+
175+
```shell
176+
sudo rm -rf /mnt/data
177+
```
178+
163179
{{% /capture %}}
164180

165181

content/en/docs/tasks/configure-pod-container/security-context.md

+11
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,17 @@ label given to all Containers in the Pod as well as the Volumes.
353353
After you specify an MCS label for a Pod, all Pods with the same label can access the Volume. If you need inter-Pod protection, you must assign a unique MCS label to each Pod.
354354
{{< /warning >}}
355355

356+
## Clean up
357+
358+
Delete the Pod:
359+
360+
```shell
361+
kubectl delete pod security-context-demo
362+
kubectl delete pod security-context-demo-2
363+
kubectl delete pod security-context-demo-3
364+
kubectl delete pod security-context-demo-4
365+
```
366+
356367
{{% /capture %}}
357368

358369
{{% capture whatsnext %}}

0 commit comments

Comments
 (0)