Comments (3)
What is the error you're getting? Also, have you tried adding the EKS cluster to the argocd using the argocd cluster add
command?
from argo-cd.
Error is "failed to sync cluster https://10.100.0.1:443: failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io: Internal error occurred: error resolving resource"
I have the same error when using cluster added by argocd cluster add
command
from argo-cd.
I have recreated sequence and this is argocd-application-controller-0 logs
time="2024-09-11T15:33:16Z" level=info msg="Processing all cluster shards"
time="2024-09-11T15:33:16Z" level=info msg="Processing all cluster shards"
time="2024-09-11T15:33:16Z" level=info msg="appResyncPeriod=3m0s, appHardResyncPeriod=0s, appResyncJitter=0s"
time="2024-09-11T15:33:16Z" level=info msg="Starting configmap/secret informers"
time="2024-09-11T15:33:17Z" level=info msg="Configmap/secret informer synced"
time="2024-09-11T15:33:17Z" level=warning msg="Cannot init sharding. Error while querying clusters list from database: server.secretkey is missing"
time="2024-09-11T15:33:17Z" level=warning msg="Failed to save clusters info: server.secretkey is missing"
time="2024-09-11T15:33:17Z" level=info msg="0xc000e209c0 subscribed to settings updates"
time="2024-09-11T15:33:17Z" level=info msg="Cluster https://kubernetes.default.svc has been assigned to shard 0"
time="2024-09-11T15:33:17Z" level=info msg="Starting secretInformer forcluster"
time="2024-09-11T15:33:17Z" level=warning msg="Unable to parse updated settings: server.secretkey is missing"
time="2024-09-11T15:33:17Z" level=info msg="Notifying 1 settings subscribers: [0xc000e209c0]"
time="2024-09-11T15:35:28Z" level=info msg="Refreshing app status (spec.source differs), level (3)" application=argocd/guestbook
time="2024-09-11T15:35:28Z" level=info msg="Comparing app state (cluster: https://kubernetes.default.svc, namespace: default)" application=argocd/guestbook
time="2024-09-11T15:35:28Z" level=info msg="Start syncing cluster" server="https://kubernetes.default.svc"
time="2024-09-11T15:35:30Z" level=error msg="Failed to sync cluster" error="failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io: Internal error occurred: error resolving resource" server="https://kubernetes.default.svc"
time="2024-09-11T15:35:30Z" level=info msg="Normalized app spec: {\"status\":{\"conditions\":[{\"lastTransitionTime\":\"2024-09-11T15:35:28Z\",\"message\":\"Failed to load live state: failed to get cluster info for \\\"https://kubernetes.default.svc\\\": error synchronizing cache state : failed to sync cluster https://10.100.0.1:443: failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io: Internal error occurred: error resolving resource\",\"type\":\"ComparisonError\"},{\"lastTransitionTime\":\"2024-09-11T15:35:28Z\",\"message\":\"Failed to load target state: failed to get cluster version for cluster \\\"https://kubernetes.default.svc\\\": failed to get cluster info for \\\"https://kubernetes.default.svc\\\": error synchronizing cache state : failed to sync cluster https://10.100.0.1:443: failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io: Internal error occurred: error resolving resource\",\"type\":\"ComparisonError\"},{\"lastTransitionTime\":\"2024-09-11T15:35:28Z\",\"message\":\"error synchronizing cache state : failed to sync cluster https://10.100.0.1:443: failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io: Internal error occurred: error resolving resource\",\"type\":\"UnknownError\"}],\"sync\":{\"comparedTo\":{\"destination\":{},\"source\":{\"repoURL\":\"\"}}}}}" application=argocd/guestbook
time="2024-09-11T15:35:30Z" level=error msg="Failed to cache app resources: error getting resource tree: failed to get app hosts: error synchronizing cache state : failed to sync cluster https://10.100.0.1:443: failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io: Internal error occurred: error resolving resource" application=argocd/guestbook dedup_ms=0 dest-name= dest-namespace=default dest-server="https://kubernetes.default.svc" diff_ms=0 fields.level=3 git_ms=2406 health_ms=0 live_ms=0 settings_ms=0 sync_ms=0
time="2024-09-11T15:35:30Z" level=info msg="Updated sync status: -> Unknown" application=guestbook dest-namespace=default dest-server="https://kubernetes.default.svc" reason=ResourceUpdated type=Normal
time="2024-09-11T15:35:30Z" level=info msg="Updated health status: -> Healthy" application=guestbook dest-namespace=default dest-server="https://kubernetes.default.svc" reason=ResourceUpdated type=Normal
time="2024-09-11T15:35:30Z" level=info msg="Update successful" application=argocd/guestbook
time="2024-09-11T15:35:30Z" level=info msg="Reconciliation completed" application=argocd/guestbook dedup_ms=0 dest-name= dest-namespace=default dest-server="https://kubernetes.default.svc" diff_ms=0 fields.level=3 git_ms=2406 health_ms=0 live_ms=0 patch_ms=9 setop_ms=0 settings_ms=0 sync_ms=0 time_ms=2447
from argo-cd.
Related Issues (20)
- Receiving `Permission Denied Error` when trying to set fields for a cluster that is not present HOT 2
- Docs: Clarify Where to Mount AWS Profile Secrets for EKS Cluster
- Argo CD applications refresh is stuck and in-cluster status in empty state HOT 5
- Make dev env redis password protected
- Git Fatal Error: PRNG is not seeded
- Fluent `argocd context` command HOT 2
- targetBranchMatch filter does not work with pullRequest generator for Azure DevOps
- Improve rendering of unschedulable nodes
- docs: Add Installation Warning and Kustomize Guide
- Bug HOT 2
- Upgrade from v2.11 to 2.12 Breaks Git Secret HOT 1
- App diff with multiple sources does not work as expected HOT 1
- argocd-dex not using logformat/loglevel from cli HOT 1
- UX issue: Sync window "Sunday-Saturday" label is ambiguous
- AWS Internal NLB with AWS EKS Cluster in Private Subnet of VPC - 307 Too many redirects error on ArgoCD UI
- [RFD] Integrating with Hierarchical Namespace Controller / Matching Namespace by label
- Expose `externalTrafficPolicy: Local` and `externalTrafficPolicy: Cluster` in view=network
- Support loading auth token via environment on the cli
- replace application-resource-tree with gpu-accelerated canvas-based implementation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argo-cd.