-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds nfsv4 PVC scenario to the integration test (#30)
The longhorn-share-manager rock is currently untested because it's not needed for ReadWriteOnce PVCs (ext4 volumes). The integration test now also creates a Pod with a ReadWriteMany PVC, which will result in a nfsv4 mount, which will require the longhorn-share-manager rock to work properly.
- Loading branch information
1 parent
943fbc1
commit 9ff4298
Showing
2 changed files
with
61 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: longhorn-nfs-pvc | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
storageClassName: longhorn | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: nginx-longhorn-nfs-example | ||
spec: | ||
containers: | ||
- name: nginx | ||
image: nginx | ||
volumeMounts: | ||
- name: longhorn-pvc | ||
mountPath: /var/www | ||
readOnly: false | ||
volumes: | ||
- name: longhorn-pvc | ||
persistentVolumeClaim: | ||
claimName: longhorn-nfs-pvc |