kustomize helm in argoCD

1.2k views Asked by At

I'm trying to activate kustomize for argoCD. But here's the error I get.

The Kubernetes API could not find kustomize.config.k8s.io/Kustomization for requested resource argo/. Make sure the "Kustomization" CRD is installed on the destination cluster.

Can anyone help me please.

I used this documentation to configure my argoCD config. https://dev.to/camptocamp-ops/use-kustomize-to-post-render-helm-charts-in-argocd-2ml6

2

There are 2 answers

1
LostJon On

You likely included a kustomization.yml file in your application. kustomization.yml files should ONLY be used to generate manifests.

4
Geoffrey On

If you decompose the error log:

The Kubernetes API could not find kustomize.config.k8s.io/Kustomization for requested resource argo/.

Means that your command tries to find a kustomize.config.k8s.io/Kustomization CRD in the cluster but it's not there. A CRD (Custom Resource Definition) is a custom definition, where Service or ConfigMap are preexisting definitions.

Check more doc on this here: https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/

Make sure the "Kustomization" CRD is installed on the destination cluster.

Means that you should try to find a way to install the kustomize.config.k8s.io/Kustomization in your cluster. Checking with chatGPT with "How to install CRD kustomize.config.k8s.io/Kustomization in a cluster ?" seems to give a pretty good answer.