Skip to content

Configuration reference

Key Meaning Default
K8sHypervServices:Mode Direct (the WebApi talks to Hyper-V itself) Direct
ApiSettings:ApiToken Static API key the CSI components send in the Authorization header — (required)
Licensing:LicenseFilePath, GracePeriodDays, WarningPeriodDays License file and periods (License) /etc/hypervcsi/license/license.lic, 0, 30
Settings:GlobalRemoteSettings:UserName Service account (without domain) k8s
…:Domain Kerberos realm / AD domain —
…:RemotingMethod SshKey, SshGssapi, SshWithImpersonation SshKey
…:KeyFile Private key for SshKey —
…:KeytabFile, KdcServer, KdcPort Kerberos for SshGssapi —, from krb5.conf, 88
…:DelegateCredentials Forward the ticket to the node (needed for the cluster refresh) true
…:ConnectTimeoutSeconds, InvokeTimeoutSeconds SSH connect / command timeouts 30, 300
Settings:Clusters[]:Name, Domain, Nodes[] Cluster FQDN parts and its nodes —
Settings:Clusters[]:ClusterStorages:<CSV>:Default, PvcFolder Default store flag and volume folder under C:\ClusterStorage\<CSV>\ false, —
Settings:Clusters[]:ClusterRemoteSettings Per-cluster override of GlobalRemoteSettings —

Every key can also be given as an environment variable with __ as separator, e.g. Settings__GlobalRemoteSettings__RemotingMethod=SshGssapi.

CSI controller and node driver (environment, via chart values)

Section titled “CSI controller and node driver (environment, via chart values)”
Variable Meaning
K8sHypervServices__Mode Http (recommended: delegate to the WebApi) or Direct (in-pod PowerShell; needs the SSH/Kerberos files in the pod)
K8sHypervServices__Http__ApiUrl, __ApiToken, __TimeoutSeconds WebApi address, token, per-call timeout (default 30 s)
Kestrel__EndPoints__UnixSocket__Url CSI gRPC socket; must stay http://unix:/csi/csi.sock
Licensing__* keys As for the WebApi
CsiControllerOptions__DeleteVolume__DetachWaitAttempts, __DetachWaitSeconds Controller: wait for an in-flight detach before DeleteVolume fails (default 3 × 5 s)
CsiControllerOptions__OrphanVolumeReport__Enabled, __IntervalMinutes Controller: orphan VHDX report (default on, 30 min)
Logging__LogLevel__Default Information (default) or Debug
Parameter Values Default
hostname Cluster FQDN or node FQDN required
store CSV name the Default: true store
vhdType Dynamic, Fixed Dynamic
csi.storage.k8s.io/fstype ext4, xfs, ext3 ext4
logicalSectorSize, physicalSectorSize bytes 4096