We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudnative-PG installation fails when microk8s enable cloudnative-pg is executed.
microk8s enable cloudnative-pg
Error in CLI: The CustomResourceDefinition "poolers.postgresql.cnpg.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
The CustomResourceDefinition "poolers.postgresql.cnpg.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Cloudnative-PG plugin should get installed with no errors.
Simply run microk8s enable cloudnative-pg. I am running microk8s in Multipass, but I don't think that it is related.
Adding --server-side flag to /var/snap/microk8s/common/addons/community/addons/cloudnative-pg/enable script fixes the issue.
--server-side
/var/snap/microk8s/common/addons/community/addons/cloudnative-pg/enable
Like this:
cnpg_apply_manifest() { apply_wait=$("${SNAP_DATA}"/bin/kubectl-cnpg install generate | $KUBECTL apply --server-side -f - > /dev/null)
The text was updated successfully, but these errors were encountered:
Hello @RedLine89,
This issue seems related to #4801.
I can not reproduce your issue on MicroK8s v1.31.3 on x86_64 architecture.
v1.31.3
x86_64
I suspect the issue may be caused by your architecture.
What version of Microk8s are you running on and which architecture are you using?
Best regards, Louise
Sorry, something went wrong.
No branches or pull requests
Summary
Cloudnative-PG installation fails when
microk8s enable cloudnative-pg
is executed.Error in CLI:
The CustomResourceDefinition "poolers.postgresql.cnpg.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
What Should Happen Instead?
Cloudnative-PG plugin should get installed with no errors.
Reproduction Steps
Simply run
microk8s enable cloudnative-pg
. I am running microk8s in Multipass, but I don't think that it is related.Can you suggest a fix?
Adding
--server-side
flag to/var/snap/microk8s/common/addons/community/addons/cloudnative-pg/enable
script fixes the issue.Like this:
The text was updated successfully, but these errors were encountered: