Comments (4)
Hi @mortega89
Thanks for testing out K8up!
That it spawns two jobs is expected. However that one of them corrupts the repository isn't!
There used to be an issue with restic, if two restic init
commands were triggered at the same time and the bucket was empty, then it would corrupt the repository. Seems like that still occurs from time to time...
I just saw that the tutorial points to old CRDs as well. In step 6 could you do:
kubectl apply -f https://github.com/k8up-io/k8up/releases/download/v2.10.0/k8up-crd.yaml --server-side
Can you try the following before applying the backup.yaml
?
kubectl port-forward svc/minio 9000:9000 &
export RESTIC_REPOSITORY=s3:http://localhost:9000/backups/
export RESTIC_PASSWORD=p@ssw0rd
export AWS_ACCESS_KEY_ID=minio
export AWS_SECRET_ACCESS_KEY=minio123
restic init
If this helps, I'll rename this issue to reflect the race condition.
from k8up.
hi @Kidswiss , It's seems that the updated CRDs solve the problem, I tried as you described and it worked!
Message: "backup_backup-test" has 2 succeeded, 0 failed, and 0 started jobs
thanks a lot for your support!
from k8up.
Fix for the tutorial: #971
from k8up.
As the docs are fixed and the tutorials is working again, I'm closing here.
from k8up.
Related Issues (20)
- Refactoring e2e test with kubernetes-sigs/e2e-framework
- Installation of CRD fails HOT 3
- Helm chart support dual stuck clusters
- Add easy way to create an backup instance of a schedule HOT 2
- Helm Chart 4.5.1 hasn't been released to repositories HOT 4
- Allow to set the priorityClassName of Backup pods HOT 2
- make run doesn't work
- Slack Channel (Permissions)? HOT 2
- Gaps in K8up metrics HOT 2
- CRD Installation failed 4.7.0 HOT 3
- Backup of RWO volumes used by Pods fails HOT 7
- [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. HOT 5
- CRDS 2.2 in tutorial
- kind: Schedules does not have same spec as kind: Backup, no Volume to map CaCert HOT 1
- SIGSEGV in k8up pod when defining archive with empty s3 object
- backup error : [controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. │ HOT 2
- Backups that don't trigger any jobs never complete and aren't cleaned up
- Spec activeDeadlineSeconds not defined in job template HOT 2
- Add shell completions for the CLI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k8up.