ServiceAccount/external-dns namespace not specified, error: the server could not find the requested resource #2433
-
Hey, I'm new to Flux as I'm self learning it. I've recently upgraded to the latest version of flux using a bootstrap command: In the bootstrap command, upon waiting for But I've checked in my external-dns.yaml and it does include namespace of default. Kustomize version: {Version:kustomize/v4.4.0 GitCommit:63ec6bdb3d737a7c66901828c5743656c49b60e1 BuildDate:2021-09-27T16:24:12Z GoOs:linux GoArch:amd64} Checking my flux logs, for my ImagePolicies, I keep seeing an error of 'Reconciler error version list argument cannot be empty' |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
The recent changes in Flux behavior have been centered around behavior when merging existing configurations with Flux configs. https://fluxcd.io/docs/faq/#why-are-kubectl-edits-rolled-back-by-flux Basically, if you just upgraded to Flux 0.26.x and found some config dropped out from your cluster, that config doesn't live in git. This FAQ was just recently added to address the expectations of users that could I'm not sure how this upgrade could result in a "namespace not found" error but, you can usually inspect the output of Kustomize by using this command to
(as described here: https://fluxcd.io/docs/faq/#why-are-kubectl-edits-rolled-back-by-flux) so you can see which resources still/now don't have a Also be aware of the new Finally as I mentioned some things have changed drastically, and you mentioned an upgrade but you haven't noted what version of Flux you are using. Be sure you are on the latest version of Flux, or please include the version that you're using if possible in your reply! I do personally know what the latest version is now, but these posts are not always responded quickly, and we sometimes publish releases in quick succession, sometimes as quickly as once a day. So this will be hard to verify without including those specific details. |
Beta Was this translation helpful? Give feedback.
-
Ok the issue was basically referenced here, #1939 but being a noob in kubernetes as well, I didn't realize sooner that the kustomize-controller introduced these changes which needed namespace added to alot of the manifest files. Since I had ALOT of deployments and as such; ingresses, services and other types (secret, cert, etc.) which needed me to update the metadata tag in each of their respective files. So I just ran a find and sed to do this (recursively):
Then executed Finally I saw all my deployments updated. Thanks for the commands, they helped in debugging :) |
Beta Was this translation helpful? Give feedback.
-
1) Add
|
Beta Was this translation helpful? Give feedback.
Ok the issue was basically referenced here, #1939 but being a noob in kubernetes as well, I didn't realize sooner that the kustomize-controller introduced these changes which needed namespace added to alot of the manifest files. Since I had ALOT of deployments and as such; ingresses, services and other types (secret, cert, etc.) which needed me to update the metadata tag in each of their respective files.
So I just ran a find and sed to do this (recursively):
Then executed
flux reconcile kustomization flux-system --with-source
Finally I saw all my deployments updated.
Thanks for the comman…