Skip to content

Instantly share code, notes, and snippets.

@ddebroy
Created May 21, 2019 18:42
Show Gist options
  • Select an option

  • Save ddebroy/98b5c58e5f4baa66731f93df0bb43cc9 to your computer and use it in GitHub Desktop.

Select an option

Save ddebroy/98b5c58e5f4baa66731f93df0bb43cc9 to your computer and use it in GitHub Desktop.
Flexvolume iSCSI storage class
kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
name: iscsi-targetd-win1
provisioner: iscsi-targetd
parameters:
# this id where the iscsi server is running
targetPortal: 10.240.0.96:3260
# file system type for Windows
fsType: NTFS
# this is the iscsi server iqn
iqn: iqn.2003-01.org.linux-iscsi.minishift:targetd
# this is the iscsi interface to be used, the default is default
# iscsiInterface: default
# this must be on eof the volume groups condifgured in targed.yaml, the default is vg-targetd
# volumeGroup: vg-targetd
# this is a comma separated list of initiators that will be give access to the created volumes, they must correspond to what you have configured in your nodes.
initiators: iqn.1991-05.com.microsoft:6763k8s001, iqn.1991-05.com.microsoft:6763k8s000
# whether or not to use chap authentication for discovery operations
chapAuthDiscovery: "false"
# whether or not to use chap authentication for session operations
chapAuthSession: "false"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment