Replicated PV Mayastor Installation on Talos
info
All the below configurations can be configured either during initial cluster creation or on running worker nodes.
#
Talos Control Plane Changes#
Pod SecurityBy default, Talos Linux applies a baseline pod security profile across namespaces except for the kube-system namespace. This default setting restricts Replicated PV Mayastors’s ability to manage and access system resources. You need to add the exemptions for Replicated PV Mayastor namespace. See the Talos Documentation for detailed instructions on Pod Security.
Create a file cp.yaml
#
Talos Worker Node Changes#
Huge Pages2MiB-sized Huge Pages must be supported and enabled on the Replicated PV Mayastor storage nodes. A minimum number of 1024 such pages (i.e. 2GiB total) must be available exclusively to the Replicated PV Mayastor pod on each node.
#
LabelsAll Replicated PV Mayastor storage nodes must be labelled with the OpenEBS engine type "mayastor". This label will be used as a node selector by the IO engine Daemonset that is deployed as a part of the Replicated PV Mayastor data plane components installation.
#
Data Mount PathsProvide additional data path mounts to be accessible to the Kubernetes Kubelet container. These mounts are necessary to provide access to the host directories and attach volumes required by the Replicated PV Mayastor components.
Create a file wp.yaml
Examples
By using talosctl gen config:
- Run talosctl gen config with the above file.
By patching a running node with config file:
- Run the following command to patch an existing node with config file.
By editing machineconfig on running node:
- Run the following command to edit the machineconfig of a node directly.
important
Restart kubelet or reboot the node if you modify the vm.nr_hugepages
configuration of a node. Replicated PV Mayastor will not deploy correctly if the available Huge Page count as reported by the node's kubelet instance does not meet the minimum requirements.
#
Install Replicated PV Mayastor on TalosRefer to the OpenEBS Installation Documentation to install Replicated PV Mayastor using Helm on Talos.