# zfs-localpv

OpenEBS LocalPV-ZFS CSI driver: PersistentVolumes as ZFS datasets or zvols on each node's existing pool

This page is generated from [`kix/packages/experimental/zfs-localpv`](https://github.com/kix-run/kix/tree/main/kix/packages/experimental/zfs-localpv).

| | |
| --- | --- |
| Stability | Experimental |
| `package` value | `packages.experimental.zfs-localpv` |
| Default software version | `2.11.2` |
| Default aliases | `zfsLocalPv` |

## Dependencies

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set [`deps.<name>`](/docs/reference/instances-and-composition/#deps) in your cluster definition. See [Declaring dependencies](/docs/reference/package-anatomy/#declaring-dependencies) for how required and optional dependencies work.

| Dependency | Requirement |
| --- | --- |
| `snapshotController` | Optional |

## Options

### `controller.env`

Extra environment variables of the controller plugin: a string, a `fieldRef` source, or a `secretKeyRef` naming a Secret managed outside Kix with `kix.untrackedRef`. Defaults `OPENEBS_IO_ENABLE_ANALYTICS` and `OPENEBS_IO_ENABLE_BACKUP_GC` to `"false"` (null removes them) and owns `OPENEBS_NAMESPACE`, `OPENEBS_CSI_ENDPOINT`, and `OPENEBS_CONTROLLER_DRIVER`.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `controller.extraArgs`

Flags appended to the controller plugin. `--endpoint`, `--plugin`, and `--name` are refused.

- **Type:** `list of string`
- **Default:** `[ ]`

### `controller.resources`

Resources of the controller plugin container.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "200m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `controller.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `controller.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `controller.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `controller.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `controller.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"200m"`

### `controller.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `controller.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `controller.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `controller.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `controller.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `controller.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `csiProvisioner.image`

Image of csi-provisioner, the controller sidecar that creates volumes and publishes pool capacity.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:d5e46da8aff7d73d6f00c761dae94472bcda6e78f4f17b3802dc89d44de0111b";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/sig-storage/csi-provisioner";
    tag = "v5.2.0";
  }
  ```

### `csiProvisioner.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `csiProvisioner.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `csiProvisioner.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `csiProvisioner.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `csiProvisioner.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"registry.k8s.io/sig-storage/csi-provisioner"`

### `csiProvisioner.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `csiProvisioner.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `csiProvisioner.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v5.2.0"`

### `csiProvisioner.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "200m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `csiProvisioner.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `csiProvisioner.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `csiProvisioner.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `csiProvisioner.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `csiProvisioner.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"200m"`

### `csiProvisioner.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `csiProvisioner.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `csiProvisioner.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `csiProvisioner.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `csiProvisioner.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `csiProvisioner.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `csiResizer.image`

Image of csi-resizer, the controller sidecar that expands volumes.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:8ddd178ba5d08973f1607f9b84619b58320948de494b31c9d7cd5375b316d6d4";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/sig-storage/csi-resizer";
    tag = "v1.13.2";
  }
  ```

### `csiResizer.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `csiResizer.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `csiResizer.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `csiResizer.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `csiResizer.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"registry.k8s.io/sig-storage/csi-resizer"`

### `csiResizer.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `csiResizer.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `csiResizer.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v1.13.2"`

### `csiResizer.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "200m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `csiResizer.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `csiResizer.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `csiResizer.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `csiResizer.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `csiResizer.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"200m"`

### `csiResizer.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `csiResizer.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `csiResizer.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `csiResizer.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `csiResizer.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `csiResizer.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `csiSnapshotter.image`

Image of csi-snapshotter, which runs when the `snapshotController` dependency resolves.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:dd788d79cf4c1b8edee6d9b80b8a1ebfc51a38a365c5be656986b129be9ac784";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/sig-storage/csi-snapshotter";
    tag = "v8.2.0";
  }
  ```

### `csiSnapshotter.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `csiSnapshotter.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `csiSnapshotter.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `csiSnapshotter.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `csiSnapshotter.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"registry.k8s.io/sig-storage/csi-snapshotter"`

### `csiSnapshotter.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `csiSnapshotter.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `csiSnapshotter.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v8.2.0"`

### `csiSnapshotter.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "200m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `csiSnapshotter.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `csiSnapshotter.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `csiSnapshotter.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `csiSnapshotter.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `csiSnapshotter.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"200m"`

### `csiSnapshotter.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `csiSnapshotter.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `csiSnapshotter.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `csiSnapshotter.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `csiSnapshotter.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `csiSnapshotter.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `image`

Image of the controller and node plugins. Its major.minor must match the vendored CRDs.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:0234692bb4a48b3e70d0bc25f3327ca2b6f1c93d57a066eea755a5c0d94bfb2d";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/openebs/zfs-driver";
    tag = "2.11.2";
  }
  ```

### `image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"docker.io/openebs/zfs-driver"`

### `image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"2.11.2"`

### `node.encrKeysDir`

Host directory mounted at `/home/keys` in the node plugin for datasets encrypted with `keylocation=file:///home/keys/...` (`zfsNode.encrKeysDir` upstream). Null mounts nothing.

- **Type:** `null or string matching the pattern /.*`
- **Default:** `null`
- **Example:** `"/home/keys"`

### `node.env`

Extra environment variables of the node plugin: a string, a `fieldRef` source, or a `secretKeyRef` naming a Secret managed outside Kix with `kix.untrackedRef`. Defaults `ALLOWED_TOPOLOGIES` to `kubernetes.io/hostname` plus every key the classes in `storageClasses` select on in `allowedTopologies`; the driver always adds `openebs.io/nodeid` and `openebs.io/nodename`, and volumes pin to `openebs.io/nodeid`. Override with a comma-separated list of node label keys when an external StorageClass selects on other keys, or `"All"` to register every node label. Owns `OPENEBS_NAMESPACE`, `OPENEBS_NODE_NAME`, `OPENEBS_CSI_ENDPOINT`, and `OPENEBS_NODE_DRIVER`.

- **Type:** ``attribute set of (null or string or env var source with `valueFrom`)``
- **Default:** `{ }`

### `node.extraArgs`

Flags appended to the node plugin. `--endpoint`, `--plugin`, `--nodename`, and `--name` are refused.

- **Type:** `list of string`
- **Default:** `[ ]`
- **Example:**

  ```nix
  [
    "--default-format-options=xfs=-i nrext64=0"
  ]
  ```

### `node.kubeletDir`

The kubelet's root directory on the host (`zfsNode.kubeletDir` upstream).

- **Type:** `string matching the pattern /.*`
- **Default:** `"/var/lib/kubelet"`

### `node.nodeSelector`

Node labels the node plugin is limited to, for clusters where only some nodes have a ZFS pool.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `node.resources`

Resources of the node plugin container, which runs `zfs` for every volume operation.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "500m";
      memory = "256Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `node.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `node.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `node.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `node.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `node.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"500m"`

### `node.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `node.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"256Mi"`

### `node.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `node.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `node.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `node.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `node.tolerations`

Taints the node plugin tolerates, for tainted storage nodes.

- **Type:** `list of (submodule)`
- **Default:** `[ ]`

### `node.tolerations.*.effect`

Taint effect to tolerate. Leave unset to tolerate all effects.

- **Type:** `null or one of "NoSchedule", "PreferNoSchedule", "NoExecute"`
- **Default:** `null`

### `node.tolerations.*.key`

Taint key to match. Leave unset with `operator = "Exists"` to match all taint keys.

- **Type:** `null or string`
- **Default:** `null`

### `node.tolerations.*.operator`

How to match the taint: `"Equal"` matches `key` and `value`, and `"Exists"` matches any value for `key` (or all taints when `key` is unset).

- **Type:** `one of "Exists", "Equal"`
- **Default:** `"Equal"`

### `node.tolerations.*.tolerationSeconds`

Seconds a pod stays on a node after a matching `NoExecute` taint is added before Kubernetes evicts it. Leave unset to keep the pod on the node indefinitely. Requires `effect = "NoExecute"`.

- **Type:** `null or (unsigned integer, meaning >=0)`
- **Default:** `null`

### `node.tolerations.*.value`

Taint value to match when `operator` is `"Equal"`. Leave unset when `operator` is `"Exists"`.

- **Type:** `null or string`
- **Default:** `null`

### `node.zfsBin`

The `zfs` binary run under `chroot /host` when neither `/sbin/zfs` nor `/usr/sbin/zfs` exists on the host (`zfs.bin` upstream): an absolute path or a command name on the host's PATH.

- **Type:** `string matching the pattern (/[A-Za-z0-9._+-]+)+|[A-Za-z0-9_][A-Za-z0-9._+-]*`
- **Default:** `"zfs"`
- **Example:** `"/run/current-system/sw/bin/zfs"`

### `nodeDriverRegistrar.image`

Image of node-driver-registrar, the node sidecar that registers the driver with the kubelet.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    digest = "sha256:d7138bcc3aa5f267403d45ad4292c95397e421ea17a0035888850f424c7de25d";
    pullPolicy = "IfNotPresent";
    repository = "registry.k8s.io/sig-storage/csi-node-driver-registrar";
    tag = "v2.13.0";
  }
  ```

### `nodeDriverRegistrar.image.digest`

Resolved manifest digest, `sha256:` followed by 64 hex characters. What will actually run. Null means not resolved.

- **Type:** `null or string`
- **Default:** the package's digest while `tag` is the package's tag, otherwise null

### `nodeDriverRegistrar.image.note`

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

- **Type:** `null or string`
- **Default:** `null`

### `nodeDriverRegistrar.image.promotedBy`

Who resolved this pin, for the record. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `nodeDriverRegistrar.image.pullPolicy`

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

- **Type:** `null or string`
- **Default:** `"IfNotPresent"`

### `nodeDriverRegistrar.image.repository`

Image repository, registry host included.

- **Type:** `string`
- **Default:** `"registry.k8s.io/sig-storage/csi-node-driver-registrar"`

### `nodeDriverRegistrar.image.resolvedAt`

When this pin was resolved, RFC 3339. Null when unknown.

- **Type:** `null or string`
- **Default:** `null`

### `nodeDriverRegistrar.image.sourceRev`

Revision of the source the image was built from, when Kix built it. Null for upstream images.

- **Type:** `null or string`
- **Default:** `null`

### `nodeDriverRegistrar.image.tag`

Image tag. What was asked for.

- **Type:** `string`
- **Default:** `"v2.13.0"`

### `nodeDriverRegistrar.resources`

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

- **Type:** `submodule`
- **Default:**

  ```nix
  {
    limits = {
      cpu = "200m";
      memory = "128Mi";
    };
    requests = {
      cpu = "10m";
      memory = "32Mi";
    };
  }
  ```

### `nodeDriverRegistrar.resources.claims`

Dynamic resource claims the container uses. Null leaves it unset.

- **Type:** `null or (list of (submodule))`
- **Default:** `null`

### `nodeDriverRegistrar.resources.claims.*.name`

Name of an entry in the pod's `resourceClaims`.

- **Type:** `string`

### `nodeDriverRegistrar.resources.claims.*.request`

Request within the claim to use. Null uses the whole claim.

- **Type:** `null or string`
- **Default:** `null`

### `nodeDriverRegistrar.resources.limits`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `nodeDriverRegistrar.resources.limits.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"200m"`

### `nodeDriverRegistrar.resources.limits.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `nodeDriverRegistrar.resources.limits.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"128Mi"`

### `nodeDriverRegistrar.resources.requests`

Resource quantities by name.

- **Type:** `open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `{ }`

### `nodeDriverRegistrar.resources.requests.cpu`

The cpu quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"10m"`

### `nodeDriverRegistrar.resources.requests.ephemeral-storage`

The ephemeral-storage quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `null`

### `nodeDriverRegistrar.resources.requests.memory`

The memory quantity. Null leaves it unset.

- **Type:** `null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)`
- **Default:** `"32Mi"`

### `storageClasses`

StorageClasses this driver provisions, keyed by class name. `parameters`
takes the driver's keys (`poolname`, `fstype`, `recordsize`,
`compression`, `dedup`, `thinprovision`, `encryption`, and others);
`poolname` is required. Volumes are node-local, so the default
`volumeBindingMode` is `WaitForFirstConsumer`.

- **Type:** `attribute set of (submodule)`
- **Default:** `{ }`
- **Example:**

  ```nix
  {
    zfs = {
      parameters = { poolname = "tank/k8s"; fstype = "zfs"; compression = "lz4"; };
      annotations."storageclass.kubernetes.io/is-default-class" = "true";
    };
  }
  ```

### `storageClasses.<name>.allowVolumeExpansion`

Whether a claim of this class may grow. Omitted from the manifest when false, because the apiserver leaves the field unset and rendering `false` would differ from an adopted class.

- **Type:** `boolean`
- **Default:** `false`

### `storageClasses.<name>.allowedTopologies`

Nodes volumes of this class may be provisioned for. Omitted from the manifest when empty.

- **Type:** `list of (submodule)`
- **Default:** `[ ]`

### `storageClasses.<name>.allowedTopologies.*.matchLabelExpressions`

Label requirements a node must meet for a volume of this class to be provisioned there.

- **Type:** `list of (submodule)`
- **Default:** `[ ]`

### `storageClasses.<name>.allowedTopologies.*.matchLabelExpressions.*.key`

Node label key, such as `topology.kubernetes.io/zone`.

- **Type:** `string`

### `storageClasses.<name>.allowedTopologies.*.matchLabelExpressions.*.values`

Label values the node must carry one of.

- **Type:** `list of string`
- **Default:** `[ ]`

### `storageClasses.<name>.annotations`

Annotations on the StorageClass. `"storageclass.kubernetes.io/is-default-class" = "true"`
makes it the cluster default, which the apiserver gives every
claim that names no class.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `storageClasses.<name>.labels`

Labels on the StorageClass.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `storageClasses.<name>.mountOptions`

Mount options for volumes of this class. Omitted from the manifest when empty.

- **Type:** `list of string`
- **Default:** `[ ]`

### `storageClasses.<name>.parameters`

Driver-specific parameters passed to the provisioner. Null values are left out. Omitted from the manifest when empty. The apiserver refuses changes to this field, so changing it means deleting and recreating the class.

- **Type:** `open submodule of attribute set of string`
- **Default:** `{ }`

### `storageClasses.<name>.parameters.poolname`

ZFS pool or dataset under which volumes of this class are created. Must exist on every node a volume can land on.

- **Type:** `string`
- **Example:** `"tank/k8s"`

### `storageClasses.<name>.reclaimPolicy`

What happens to a volume when its claim is deleted. The apiserver refuses changes to this field, so changing it means deleting and recreating the class.

- **Type:** `one of "Delete", "Retain"`
- **Default:** `"Delete"`

### `storageClasses.<name>.volumeBindingMode`

When a volume is provisioned: as soon as the claim exists, or once a pod using it is scheduled. Node-local drivers need `WaitForFirstConsumer`. The apiserver refuses changes to this field, so changing it means deleting and recreating the class.

- **Type:** `one of "Immediate", "WaitForFirstConsumer"`
- **Default:** `"Immediate"`

### `volumeSnapshotClasses`

VolumeSnapshotClasses for this driver, keyed by class name. Requires a provider of the `snapshotController` role.

- **Type:** `attribute set of (submodule)`
- **Default:** `{ }`
- **Example:** `{ zfs.annotations."snapshot.storage.kubernetes.io/is-default-class" = "true"; }`

### `volumeSnapshotClasses.<name>.annotations`

Annotations on the VolumeSnapshotClass. Setting `"snapshot.storage.kubernetes.io/is-default-class" = "true"` makes this the default snapshot class for this driver's volumes.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `volumeSnapshotClasses.<name>.deletionPolicy`

What happens to the underlying snapshot when its VolumeSnapshot is deleted: `Delete` deletes it, and `Retain` keeps it.

- **Type:** `one of "Delete", "Retain"`
- **Default:** `"Delete"`

### `volumeSnapshotClasses.<name>.labels`

Labels on the VolumeSnapshotClass.

- **Type:** `attribute set of string`
- **Default:** `{ }`

### `volumeSnapshotClasses.<name>.parameters`

Driver-specific snapshot parameters. Omitted from the manifest when empty.

- **Type:** `attribute set of string`
- **Default:** `{ }`