Argo CD Resource not found error

A specified resource in the application manifest does not exist in the cluster.

Understanding and Resolving 'Resource Not Found' Errors in Argo CD

Introduction to Argo CD

Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. It automates the deployment of the desired application states in Kubernetes clusters, ensuring that the live state matches the desired state defined in Git repositories. Argo CD is widely used for its ability to manage complex deployments and rollbacks efficiently.

Identifying the Symptom

One common issue users encounter is the 'Resource not found' error. This error typically manifests when Argo CD cannot locate a specified resource within the Kubernetes cluster. Users may notice this error in the Argo CD UI or logs, indicating a discrepancy between the desired state and the live state of the application.

Understanding the Issue

What Causes 'Resource Not Found' Errors?

This error occurs when a resource defined in the application manifest does not exist in the cluster. It could be due to a missing resource, a typo in the resource name, or an incorrect namespace specification. This discrepancy prevents Argo CD from synchronizing the application state.

Common Scenarios

Some common scenarios leading to this error include:

  • Resources defined in the manifest have not been created in the cluster.
  • Resources exist but are in a different namespace than specified.
  • Typographical errors in resource names or kinds.

Steps to Fix the Issue

Verify Resource Existence

First, ensure that all resources defined in your application manifest are created in the cluster. Use the following command to list resources:

kubectl get all -n <namespace>

Replace <namespace> with the appropriate namespace. Verify that all expected resources are listed.

Check Namespace Configuration

Ensure that the resources are in the correct namespace. If your manifest specifies a namespace, verify that the resources are deployed there. You can switch namespaces using:

kubectl config set-context --current --namespace=<namespace>

Correct Manifest Errors

Review your application manifest for any typographical errors in resource names or kinds. Correct any discrepancies and redeploy the manifest.

Additional Resources

For more detailed guidance on resolving Argo CD issues, consider visiting the following resources:

By following these steps, you can effectively resolve 'Resource not found' errors and ensure your Argo CD deployments are successful.

Master

Argo CD

in Minutes — Grab the Ultimate Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Real-world configs/examples
Handy troubleshooting shortcuts
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

Argo CD

Cheatsheet

(Perfect for DevOps & SREs)

Most-used commands
Your email is safe with us. No spam, ever.

Thankyou for your submission

We have sent the cheatsheet on your email!
Oops! Something went wrong while submitting the form.

MORE ISSUES

Made with ❤️ in Bangalore & San Francisco 🏢

Doctor Droid