wazuh-kubernetes
wazuh-kubernetes copied to clipboard
Issue with local minikube deployment
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 ?
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?:
- Have you made any custom configurations to the repository?
- What branch/tag are you using? I recommend to use the latest tag: v4.2.5.
- Please try this: in the
envs/local-env/kustomization.yml
replacepaths
withpatches
. 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