Kubernetes Help Please - no matches for Id PersistentVolumeClaim

343 views
Skip to first unread message

Paulo Baptista

unread,
Aug 24, 2023, 3:27:48 PM8/24/23
to Wazuh | Mailing List
Rancher v2.6.8
Client Version: v1.28.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.22.17

Steps:
  • git clone https://github.com/wazuh/wazuh-kubernetes.git -b v4.5.1 --depth=1
  • generate certs
  • update envs/local-env/storage-class.yaml with
  • apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      name: wazuh-storage
    spec:
      accessModes:
        - ReadWriteMany
      resources:
        requests:
          storage: 2Gi
      storageClassName: groupa-nfs
  • deploy kubectl apply -k envs/local-env/
  • error: no matches for Id PersistentVolumeClaim.v1.[noGrp]/wazuh-storage.[noNs]; failed to find unique target for patch PersistentVolumeClaim.v1.[noGrp]/wazuh-storage.[noNs]
Any ideas?

I've tested a simple nginx app using the PVC and it worked fine.

Thanks,

Paulo Baptista

Gustavo Choquevilca

unread,
Aug 24, 2023, 4:40:53 PM8/24/23
to Wazuh | Mailing List

Hi Paulo,
This error seems to be related to the definition of PVC, in this case it can be checked:
  • Check if PVC wazuh-storage has been created, if so you could perform a kubectl -n namespace describe pvc name_pvc, to know more details.
  • Also check if storageClassName : groupa-nfs is defined correctly and is accessible.
  • If the PVC and storageClassName are correctly configured, you may need to check for any conflicting resources or dependencies that could be causing the error.
Best regards,
Gustavo.
Reply all
Reply to author
Forward
0 new messages