Hi Amin,
Thanks for the detailed environment description as it makes the situation much clearer and give us some specific context.
First of all your assumption is correct, the wazuh-manager-master-0 is stuck in `Pending` because Kubernetes control plane nodes are tainted by default with:
`
node-role.kubernetes.io/control-plane:NoSchedule`This prevents regular workload pods from being scheduled on the control plane unless you explicitly tolerate that taint.
Even though your PV and PVC bindings are correct, the scheduler will not place the pod on sm400 because of this taint.
Regarding your questions:
Should the Wazuh Manager Master run on the control plane?
No, it is generally not recommended to run Wazuh Manager (or any application workload) on the control plane unless strictly necessary for specific reasons.
Control plane nodes should ideally:
- run only Kubernetes system components (kube-apiserver, etcd, scheduler…)
- remain stable and isolated from application load
- avoid unnecessary CPU/memory pressure
So I would recommend you to move wazuh-manager-master-0 to a worker node instead of running it on sm400.
In order to do that, the adjustments you require would be mainly:
* PV nodeAffinity
Right now your PV for the master should be something like:
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key:
kubernetes.io/hostname operator: In
values:
- sm400
Move it to the new target worker node by adjusting:
values:
- <new-worker-hostname>
* Storage path on the new worker
The PV local.path must exist on the worker:
local:
path: /mnt/wazuh-master
Also on the new worker node:
mkdir -p /mnt/wazuh-master
chmod 755 /mnt/wazuh-master
Keep in mind that if you use a different disk or mount point, you will have to update the path accordingly.
Best regards!