Skip to content
New issue

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

CRD Installation failed 4.7.0 #977

Open
matthiasbaldi opened this issue May 30, 2024 · 3 comments
Open

CRD Installation failed 4.7.0 #977

matthiasbaldi opened this issue May 30, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@matthiasbaldi
Copy link

Description

The CRD installation will fail when I try to apply it like documented:
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml

Additional Context

No response

Logs

kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml                       
customresourcedefinition.apiextensions.k8s.io/archives.k8up.io unchanged
customresourcedefinition.apiextensions.k8s.io/backups.k8up.io unchanged
customresourcedefinition.apiextensions.k8s.io/checks.k8up.io unchanged
customresourcedefinition.apiextensions.k8s.io/prunes.k8up.io unchanged
customresourcedefinition.apiextensions.k8s.io/restores.k8up.io unchanged
customresourcedefinition.apiextensions.k8s.io/schedules.k8up.io unchanged
customresourcedefinition.apiextensions.k8s.io/snapshots.k8up.io unchanged
Error from server (Invalid): error when creating "https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml": CustomResourceDefinition.apiextensions.k8s.io "podconfigs.k8up.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes
Error from server (Invalid): error when creating "https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml": CustomResourceDefinition.apiextensions.k8s.io "prebackuppods.k8up.io" is invalid: metadata.annotations: Too long: must have at most 262144 bytes

Expected Behavior

What in my case worked was the ---server-side suffix.
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml --server-side

It should work out of the box, may shorten the metadata or change the docs to the server-side flag.

Steps To Reproduce

No response

Version of K8up

4.7.0

Version of Kubernetes

1.27.10

Distribution of Kubernetes

Kubernetes

@matthiasbaldi matthiasbaldi added the bug Something isn't working label May 30, 2024
@timatlee
Copy link

timatlee commented Jun 2, 2024

Same output for me. Fix from a previous issue is to include --server-side in the kubectl command:

kubectl apply -f https://github.com/k8up-io/k8up/releases/download/k8up-4.7.0/k8up-crd.yaml --server-side

@Kidswiss
Copy link
Contributor

Hi @matthiasbaldi

Can you point us to the location in the docs where you found the outdated instructions?

@matthiasbaldi
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants