wazuh / wazuh-kubernetes

Wazuh - Wazuh Kubernetes
https://wazuh.com/
GNU General Public License v2.0
255 stars 155 forks source link

Issue with local minikube deployment #209

Open mandeeps13k opened 2 years ago

mandeeps13k commented 2 years ago

I'm getting the following error on executing kubectl apply -k envs/local-env/

Error :

error: trouble configuring builtin PatchStrategicMergeTransformer with config: `
paths:
- storage-class.yaml
- elastic-resources.yaml
- wazuh-resources.yaml
`: missing Resource metadata

Can you please check what could be the reason for it and how we can debug it ?

teddytpc1 commented 2 years ago

Hi @mandeeps13k. I was not able to reproduce the issue. I assume you are using the local-environment.md guide to deploy Wazuh. I did not find the following block in the repository (it looks like this block should be in the envs/local-env/kustomization.yml file) :

paths:
- storage-class.yaml
- elastic-resources.yaml
- wazuh-resources.yaml

Would you provide the following information please?:

  1. Have you made any custom configurations to the repository?
  2. What branch/tag are you using? I recommend to use the latest tag: v4.2.5.
  3. Please try this: in the envs/local-env/kustomization.yml replace paths with patches. This is how the file should look kustomization.yml:
# Copyright (C) 2021 Wazuh Inc.
#
# This program is a free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public
# License (version 2) as published by the FSF - Free Software
# Foundation.

bases:
  - ../../wazuh
patches:
  - storage-class.yaml
  - elastic-resources.yaml
  - wazuh-resources.yaml
gecube commented 4 days ago

@mandeeps13k Good day! Is the issue still actual?