Skip to content

Commit

Permalink
manifests: Set a storageClass for iSCSI Demo PVCs
Browse files Browse the repository at this point in the history
We need to set an empty storageClass on our PVCs to prevent that a
default provisioner is set eventually (like in minikube), which does then
lead to new PVs created by the clusters default provisioner.

See the following link for more details:
https://kubernetes.io/docs/concepts/storage/persistent-volumes/#persistentvolumeclaims

Signed-off-by: Fabian Deutsch <[email protected]>
  • Loading branch information
fabiand committed Sep 12, 2017
1 parent baa1671 commit d69c9fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manifests/iscsi-demo-target.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: PersistentVolumeClaim
metadata:
name: disk-custom
spec:
storageClassName: ""
accessModes:
- ReadWriteOnce
resources:
Expand All @@ -18,6 +19,7 @@ kind: PersistentVolumeClaim
metadata:
name: disk-alpine
spec:
storageClassName: ""
accessModes:
- ReadWriteOnce
resources:
Expand All @@ -33,6 +35,7 @@ kind: PersistentVolumeClaim
metadata:
name: disk-cirros
spec:
storageClassName: ""
accessModes:
- ReadWriteOnce
resources:
Expand Down

0 comments on commit d69c9fd

Please sign in to comment.