Skip to content

Commit

Permalink
Merge pull request #1337 from vikram-katkar/fix-static-provisioning-e…
Browse files Browse the repository at this point in the history
…xample

Fix static provisioning example
  • Loading branch information
k8s-ci-robot authored Aug 9, 2022
2 parents 03fe188 + 1a15842 commit 3bc67f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
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

0 comments on commit 3bc67f4

Please sign in to comment.