argo-cd
argo-cd copied to clipboard
ArgoCD cannot connect to AWS EKS 1.29, failed to load initial state of resource AWSManagedControlPlane.controlplane.cluster.x-k8s.io
Checklist:
- [X] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- [X] I've included steps to reproduce the bug.
- [X] I've pasted the output of
argocd version
.
Describe the bug
To Reproduce
- AWS EKS cluster update to 1.29
- Clean old Argocd installation
- Install ArgoCD from helm
helm install argocd argo/argo-cd --namespace argocd --version 7.3.11
- login with argocd command
- create demo app with
argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
I've already check https://bit.ly/argocd-faq, but i don't try to check "Argo CD is unable to connect to my cluster, how do I troubleshoot it?" because kubectl missing from argocd-server pod.
Expected behavior
Argocd cannot sync demo app and cannot connect to cluster
Screenshots
Version
argocd: v2.11.7+e4a0246
BuildDate: 2024-07-24T10:10:59Z
GitCommit: e4a0246c4d920bc1e5ee5f9048a99eca7e1d53cb
GitTreeState: clean
GoVersion: go1.21.12
Compiler: gc
Platform: darwin/amd64
argocd-server: v2.11.7+e4a0246
BuildDate: 2024-07-24T09:33:49Z
GitCommit: e4a0246c4d920bc1e5ee5f9048a99eca7e1d53cb
GitTreeState: clean
GoVersion: go1.21.10
Compiler: gc
Platform: linux/amd64
Kustomize Version: v5.2.1 2023-10-19T20:13:51Z
Helm Version: v3.14.4+g81c902a
Kubectl Version: v0.26.11
Jsonnet Version: v0.20.0
Logs
[
{
"server": "https://kubernetes.default.svc",
"name": "in-cluster",
"config": {
"tlsClientConfig": {
"insecure": false
}
},
"connectionState": {
"status": "Failed",
"message": "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",
"attemptedAt": "2024-09-11T11:35:35Z"
},
"serverVersion": "1.29+",
"info": {
"connectionState": {
"status": "Failed",
"message": "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",
"attemptedAt": "2024-09-11T11:35:35Z"
},
"serverVersion": "1.29+",
"cacheInfo": {},
"applicationsCount": 1,
"apiVersions": [
"acme.cert-manager.io/v1",
"acme.cert-manager.io/v1/Challenge",
"acme.cert-manager.io/v1/Order",
"addons.cluster.x-k8s.io/v1beta1",
"addons.cluster.x-k8s.io/v1beta1/ClusterResourceSet",
"addons.cluster.x-k8s.io/v1beta1/ClusterResourceSetBinding",
"admissionregistration.k8s.io/v1",
"admissionregistration.k8s.io/v1/MutatingWebhookConfiguration",
"admissionregistration.k8s.io/v1/ValidatingWebhookConfiguration",
"apiextensions.k8s.io/v1",
"apiextensions.k8s.io/v1/CustomResourceDefinition",
"apiregistration.k8s.io/v1",
"apiregistration.k8s.io/v1/APIService",
"apps/v1",
"apps/v1/ControllerRevision",
"apps/v1/DaemonSet",
"apps/v1/Deployment",
"apps/v1/ReplicaSet",
"apps/v1/StatefulSet",
"argoproj.io/v1alpha1",
"argoproj.io/v1alpha1/AppProject",
"argoproj.io/v1alpha1/Application",
"argoproj.io/v1alpha1/ApplicationSet",
"autoscaling/v1",
"autoscaling/v1/HorizontalPodAutoscaler",
"autoscaling/v2",
"autoscaling/v2/HorizontalPodAutoscaler",
"batch/v1",
"batch/v1/CronJob",
"batch/v1/Job",
"bootstrap.cluster.x-k8s.io/v1beta1",
"bootstrap.cluster.x-k8s.io/v1beta1/KubeadmConfig",
"bootstrap.cluster.x-k8s.io/v1beta1/KubeadmConfigTemplate",
"bootstrap.cluster.x-k8s.io/v1beta2",
"bootstrap.cluster.x-k8s.io/v1beta2/EKSConfig",
"bootstrap.cluster.x-k8s.io/v1beta2/EKSConfigTemplate",
"cert-manager.io/v1",
"cert-manager.io/v1/Certificate",
"cert-manager.io/v1/CertificateRequest",
"cert-manager.io/v1/ClusterIssuer",
"cert-manager.io/v1/Issuer",
"certificates.k8s.io/v1",
"certificates.k8s.io/v1/CertificateSigningRequest",
"cluster.x-k8s.io/v1beta1",
"cluster.x-k8s.io/v1beta1/Cluster",
"cluster.x-k8s.io/v1beta1/ClusterClass",
"cluster.x-k8s.io/v1beta1/Machine",
"cluster.x-k8s.io/v1beta1/MachineDeployment",
"cluster.x-k8s.io/v1beta1/MachineHealthCheck",
"cluster.x-k8s.io/v1beta1/MachinePool",
"cluster.x-k8s.io/v1beta1/MachineSet",
"clusterctl.cluster.x-k8s.io/v1alpha3",
"clusterctl.cluster.x-k8s.io/v1alpha3/Provider",
"controlplane.cluster.x-k8s.io/v1beta1",
"controlplane.cluster.x-k8s.io/v1beta1/KubeadmControlPlane",
"controlplane.cluster.x-k8s.io/v1beta1/KubeadmControlPlaneTemplate",
"controlplane.cluster.x-k8s.io/v1beta2",
"controlplane.cluster.x-k8s.io/v1beta2/AWSManagedControlPlane",
"controlplane.cluster.x-k8s.io/v1beta2/ROSAControlPlane",
"coordination.k8s.io/v1",
"coordination.k8s.io/v1/Lease",
"crd.k8s.amazonaws.com/v1alpha1",
"crd.k8s.amazonaws.com/v1alpha1/ENIConfig",
"discovery.k8s.io/v1",
"discovery.k8s.io/v1/EndpointSlice",
"elbv2.k8s.aws/v1alpha1",
"elbv2.k8s.aws/v1alpha1/TargetGroupBinding",
"elbv2.k8s.aws/v1beta1",
"elbv2.k8s.aws/v1beta1/IngressClassParams",
"elbv2.k8s.aws/v1beta1/TargetGroupBinding",
"events.k8s.io/v1",
"events.k8s.io/v1/Event",
"flowcontrol.apiserver.k8s.io/v1",
"flowcontrol.apiserver.k8s.io/v1/FlowSchema",
"flowcontrol.apiserver.k8s.io/v1/PriorityLevelConfiguration",
"flowcontrol.apiserver.k8s.io/v1beta3",
"flowcontrol.apiserver.k8s.io/v1beta3/FlowSchema",
"flowcontrol.apiserver.k8s.io/v1beta3/PriorityLevelConfiguration",
"infrastructure.cluster.x-k8s.io/v1beta2",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSCluster",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSClusterControllerIdentity",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSClusterRoleIdentity",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSClusterStaticIdentity",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSClusterTemplate",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSFargateProfile",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSMachine",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSMachinePool",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSMachineTemplate",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSManagedCluster",
"infrastructure.cluster.x-k8s.io/v1beta2/AWSManagedMachinePool",
"infrastructure.cluster.x-k8s.io/v1beta2/ROSACluster",
"infrastructure.cluster.x-k8s.io/v1beta2/ROSAMachinePool",
"ipam.cluster.x-k8s.io/v1alpha1",
"ipam.cluster.x-k8s.io/v1alpha1/IPAddress",
"ipam.cluster.x-k8s.io/v1alpha1/IPAddressClaim",
"ipam.cluster.x-k8s.io/v1beta1",
"ipam.cluster.x-k8s.io/v1beta1/IPAddress",
"ipam.cluster.x-k8s.io/v1beta1/IPAddressClaim",
"k8s.nginx.org/v1",
"k8s.nginx.org/v1/VirtualServer",
"k8s.nginx.org/v1/VirtualServerRoute",
"kube-green.com/v1alpha1",
"kube-green.com/v1alpha1/SleepInfo",
"monitoring.coreos.com/v1",
"monitoring.coreos.com/v1/Alertmanager",
"monitoring.coreos.com/v1/PodMonitor",
"monitoring.coreos.com/v1/Probe",
"monitoring.coreos.com/v1/Prometheus",
"monitoring.coreos.com/v1/PrometheusRule",
"monitoring.coreos.com/v1/ServiceMonitor",
"monitoring.coreos.com/v1/ThanosRuler",
"monitoring.coreos.com/v1alpha1",
"monitoring.coreos.com/v1alpha1/AlertmanagerConfig",
"networking.k8s.aws/v1alpha1",
"networking.k8s.aws/v1alpha1/PolicyEndpoint",
"networking.k8s.io/v1",
"networking.k8s.io/v1/Ingress",
"networking.k8s.io/v1/IngressClass",
"networking.k8s.io/v1/NetworkPolicy",
"node.k8s.io/v1",
"node.k8s.io/v1/RuntimeClass",
"policy/v1",
"policy/v1/PodDisruptionBudget",
"rbac.authorization.k8s.io/v1",
"rbac.authorization.k8s.io/v1/ClusterRole",
"rbac.authorization.k8s.io/v1/ClusterRoleBinding",
"rbac.authorization.k8s.io/v1/Role",
"rbac.authorization.k8s.io/v1/RoleBinding",
"runtime.cluster.x-k8s.io/v1alpha1",
"runtime.cluster.x-k8s.io/v1alpha1/ExtensionConfig",
"scheduling.k8s.io/v1",
"scheduling.k8s.io/v1/PriorityClass",
"storage.k8s.io/v1",
"storage.k8s.io/v1/CSIDriver",
"storage.k8s.io/v1/CSINode",
"storage.k8s.io/v1/CSIStorageCapacity",
"storage.k8s.io/v1/StorageClass",
"storage.k8s.io/v1/VolumeAttachment",
"v1",
"v1/ConfigMap",
"v1/Endpoints",
"v1/Event",
"v1/LimitRange",
"v1/Namespace",
"v1/Node",
"v1/PersistentVolume",
"v1/PersistentVolumeClaim",
"v1/Pod",
"v1/PodTemplate",
"v1/ReplicationController",
"v1/ResourceQuota",
"v1/Secret",
"v1/Service",
"v1/ServiceAccount",
"vpcresources.k8s.aws/v1alpha1",
"vpcresources.k8s.aws/v1alpha1/CNINode",
"vpcresources.k8s.aws/v1beta1",
"vpcresources.k8s.aws/v1beta1/SecurityGroupPolicy"
]
}
}
]
Thanks