source-controller icon indicating copy to clipboard operation
source-controller copied to clipboard

FluxCD Toolkits deploy error in the kubernetes AKS cluster

Open karthikprabhut opened this issue 1 month ago • 1 comments

Hello,

I am raising this case to bring to your attention a critical issue we're currently experiencing with our FluxCD toolkit deployment in our environment. its a brand new env and am trying to deploy flux in order to automate application delivery.

Despite a successful bootstrap process, all FluxCD toolkit components (helm-controller, kustomize-controller, notification-controller, and source-controller) are failing to deploy properly. Upon inspection, we're encountering the following errors in the pod logs: all CRD's are installed properly.

"level": "error", "ts": "2024-05-15T21:42:49.895Z", "logger": "controller-runtime source", "msg": "if kind is a CRD,it shou1d be installed before calling Start", "kind": "HelmChart source.toolkit. fluxcd.io", "error": "no matches for kind \ "Helme hart" in version "source.toolkit.fluxcd.io/vlbeta1""}

("level": "error", "ts": "2024-05-15T22: 04: 04. 881Z", "logger": "controller-runtime source", "msg": "if kind is a CRD, it shou Id be installed before calling Start", "kind": "GitRepository source toolkit.fluxcd. io", "error": "no matches for kind "G itRepository" in version | "source.toolkit.fluxcd.io/vlbeta1""}

("level": "error", "ts": "2024-05-15T22:03: 46.8737", "logger": "controller-runtime.source" , "msg" :"if kind is a CRD, it shou 1d be installed before calling Start" , "kind": "Receiver notification.toolkit.fluxcd.io", "error": "no matches for kind " Receiver" in version "notification.toolkit.fluxcd. io/vlbetal|""}

("level" : "error", "ts": "2024-05-15T22: 03: 05. 900Z", "logger": "setup", "msg"; "unable to create controller", "controller" : "He ImChart", "error": "failed setting index fields: no matches for kind | "HelmRepository" in version \ "source. toolkit. flux cd. io/vlbetal""}

Environment Details:

Flux Version: 2.1.2 Kubernetes Cluster Version: 1.27.9 Namespace: flux-system

Steps Taken: We've reviewed the RBAC permissions, Kubernetes API access, and Flux configuration, but have not identified any obvious misconfigurations or issues. Additionally, we've checked the logs of the failing pods for more insights but haven't found any actionable information.

Let me know if there are any additional details or logs you require to assist in diagnosing the problem more accurately.

karthikprabhut avatar May 15 '24 22:05 karthikprabhut