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

Fix static provisioning example #1337

Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions examples/kubernetes/static-provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ This example shows you how to create and consume a `PersistentVolume` from an ex
```sh
$ kubectl get pvc ebs-claim

NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
ebs-claim Bound pvc-119a0c81-f45a-4bec-a116-c36cc428cc57 5Gi RWO gp2 53s
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
ebs-claim Bound test-pv 5Gi RWO 53s
```

4. Validate the pod successfully wrote data to the statically provisioned volume:
Expand All @@ -67,4 +67,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
```
```
2 changes: 2 additions & 0 deletions examples/kubernetes/static-provisioning/manifests/claim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: PersistentVolumeClaim
metadata:
name: ebs-claim
spec:
storageClassName: "" # Empty string must be explicitly set otherwise default StorageClass will be set
volumeName: test-pv
accessModes:
- ReadWriteOnce
resources:
Expand Down