Skip to content

Commit

Permalink
Merge pull request #1755 from AndrewSirenko/patch-2
Browse files Browse the repository at this point in the history
Update static-provisioning example README.md
  • Loading branch information
k8s-ci-robot authored Sep 25, 2023
2 parents 988a348 + 2082760 commit e488c7b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions examples/kubernetes/static-provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
This example shows you how to create and consume a `PersistentVolume` from an existing EBS volume with static provisioning.

1. Edit the `PersistentVolume` manifest in [pv.yaml](./manifests/pv.yaml) to include your `volumeHandle` EBS volume ID and `nodeSelectorTerms` zone value.

The `StorageClass` on the `PersistentVolumeClaim` and `PersistentVolume` must match. If you have a default storage class, this means you must explicitly set `spec.storageClassName` to `""` in the [PVC manifest](manifests/claim.yaml#L6) if the PV doesn't have a `StorageClass`.

The [`spec.volumeName` field](manifests/claim.yaml#L7) of the PVC must match the [name of the PV](manifests/pv.yaml#L4) for it to be selected.

```
```yaml
apiVersion: v1
kind: PersistentVolume
metadata:
Expand Down Expand Up @@ -68,4 +72,4 @@ This example shows you how to create and consume a `PersistentVolume` from an ex
persistentvolumeclaim "ebs-claim" deleted
pod "app" deleted
persistentvolume "test-pv" deleted
```
```

0 comments on commit e488c7b

Please sign in to comment.