wazuh-kubernetes icon indicating copy to clipboard operation
wazuh-kubernetes copied to clipboard

Issue with local minikube deployment

Open mandeeps13k opened this issue 3 years ago • 2 comments

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 ?

mandeeps13k avatar Nov 24 '21 14:11 mandeeps13k

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

teddytpc1 avatar Dec 03 '21 12:12 teddytpc1