Skip to content

ServiceAccount/external-dns namespace not specified, error: the server could not find the requested resource #2433

Answered by abdullahskyc
abdullahskyc asked this question in Q&A
Discussion options

You must be logged in to vote

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):

find  ./ -name '*.yaml' -type f -exec  sed -i '3s/metadata:/metadata:\
 namespace: default/g' {} \;

Then executed flux reconcile kustomization flux-system --with-source

Finally I saw all my deployments updated.

Thanks for the comman…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@abdullahskyc
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by abdullahskyc
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants