elastisys / compliantkubernetes-kubespray

Apache License 2.0
26 stars 7 forks source link

rook: Add ability to set RBD image features #357

Closed TorLdre closed 3 months ago

TorLdre commented 3 months ago

What kind of PR is this?

Required: Mark one of the following that is applicable:

Optional: Mark one or more of the following that are applicable:

What does this PR do / why do we need this PR?

With Linux kernel 5.4 (which shipped, for example, with Ubuntu 20.04 LTS) several new Ceph RBD image features was implemented. The rook-ceph defaults, however, does not reflect this fact, and the existing default ("layering") is recommended only for kernels prior to 5.4. Adding the ability to set "imageFeatures" defaults when deploying rook-ceph aims to mitigate this.

From rook-ceph's documentation: "Rook's default RBD configuration specifies only the layering feature, for broad compatibility with older kernels. If your Kubernetes nodes run a 5.4 or later kernel, additional feature flags can be enabled in the storage class. The fast-diff and object-map features are especially useful."

This change will not, however, change existing default behavior.

Additional information to reviewers

Changing parameters to an already existing storage storageclass is not allowed.

Screenshots

Checklist