62 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			62 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
| driver: freenas-api-nfs
 | |
| instance_id:
 | |
| httpConnection:
 | |
|   protocol: http
 | |
|   host: server address
 | |
|   port: 80
 | |
|   # use only 1 of apiKey or username/password
 | |
|   # if both are present, apiKey is preferred
 | |
|   # apiKey is only available starting in TrueNAS-12
 | |
|   #apiKey:
 | |
|   username: root
 | |
|   password:
 | |
|   allowInsecure: true
 | |
|   # use apiVersion 2 for TrueNAS-12 and up (will work on 11.x in some scenarios as well)
 | |
|   # leave unset for auto-detection
 | |
|   #apiVersion: 2
 | |
| zfs:
 | |
|   # can be used to override defaults if necessary
 | |
|   # the example below is useful for TrueNAS 12
 | |
|   #cli:
 | |
|   #  sudoEnabled: true
 | |
|   #
 | |
|   #  leave paths unset for auto-detection
 | |
|   #  paths:
 | |
|   #    zfs: /usr/local/sbin/zfs
 | |
|   #    zpool: /usr/local/sbin/zpool
 | |
|   #    sudo: /usr/local/bin/sudo
 | |
|   #    chroot: /usr/sbin/chroot
 | |
|   
 | |
|   # can be used to set arbitrary values on the dataset/zvol
 | |
|   # can use handlebars templates with the parameters from the storage class/CO
 | |
|   #datasetProperties:
 | |
|   #  "org.freenas:description": "{{ parameters.[csi.storage.k8s.io/pvc/namespace] }}/{{ parameters.[csi.storage.k8s.io/pvc/name] }}"
 | |
|   #  "org.freenas:test": "{{ parameters.foo }}"
 | |
|   #  "org.freenas:test2": "some value"
 | |
| 
 | |
|   datasetParentName: tank/k8s/a/vols
 | |
|   # do NOT make datasetParentName and detachedSnapshotsDatasetParentName overlap
 | |
|   # they may be siblings, but neither should be nested in the other
 | |
|   detachedSnapshotsDatasetParentName: tank/k8s/a/snaps
 | |
|   datasetEnableQuotas: true
 | |
|   datasetEnableReservation: false
 | |
|   datasetPermissionsMode: "0777"
 | |
|   datasetPermissionsUser: 0
 | |
|   datasetPermissionsGroup: 0
 | |
| 
 | |
|   # not supported yet
 | |
|   #datasetPermissionsAcls:
 | |
|   #- "-m everyone@:full_set:allow"
 | |
|   #- "-m u:kube:full_set:allow"
 | |
| 
 | |
| nfs:
 | |
|   #shareCommentTemplate: "{{ parameters.[csi.storage.k8s.io/pvc/namespace] }}-{{ parameters.[csi.storage.k8s.io/pvc/name] }}"
 | |
|   shareHost: server address
 | |
|   shareAlldirs: false
 | |
|   shareAllowedHosts: []
 | |
|   shareAllowedNetworks: []
 | |
|   shareMaprootUser: root
 | |
|   shareMaprootGroup: root
 | |
|   shareMapallUser: ""
 | |
|   shareMapallGroup: ""
 |