kanister
kanister copied to clipboard
Add Kopia Repository Server based kando Blueprint for MySQL Application
Change Overview
Add Kopia Repository Server based Blueprint for MySQL Application
Pull request type
Please check the type of change your PR introduces:
- [ ] :construction: Work in Progress
- [ ] :rainbow: Refactoring (no functional changes, no api changes)
- [ ] :hamster: Trivial/Minor
- [ ] :bug: Bugfix
- [x] :sunflower: Feature
- [ ] :world_map: Documentation
- [ ] :robot: Test
Issues
- fixes #issue-number
Test Plan
- [x] :muscle: Manual
- [ ] :zap: Unit test
- [ ] :green_heart: E2E
Testing
1) Installing the Chart
To install the MySQL database using the bitnami
chart with the release name mysql-release
:
# Add bitnami in your local chart repository
$ helm repo add bitnami https://charts.bitnami.com/bitnami
# Update your local chart repository
$ helm repo update
# Install the MySQL database
$ helm install mysql-release bitnami/mysql \
--namespace mysql \
--create-namespace \
--set auth.rootPassword='<mysql-root-password>'
2) Installing Kanister
helm install kanister ./helm/kanister-operator \
--namespace kanister \
--set image.repository=r4rajat/controller \
--set image.tag=v17 \
--set repositoryServerControllerImage.registry=r4rajat \
--set repositoryServerControllerImage.name=repo-server-controller \
--set repositoryServerControllerImage.tag=v17 \
--set controller.parallelism=10 \
--set repositoryServerController.enabled=true \
--create-namespace
3) Setting up Repository Server
4) Applying Blueprint
kubectl create -f ./mysql-blueprint.yaml -n kanister
5) Take Backup, Restore and Delete
kanctl create actionset --action backup --namespace kanister --blueprint mysql-blueprint --statefulset mysql/mysql-release --secrets mysql=mysql/mysql-release --repository-server=kanister/kopia-repo-server-1
actionset backup-rslmb created
kanctl --namespace kanister create actionset --action restore --from "backup-rslmb"
Warning: Neither --profile nor --repository-server flag is provided.
Action might fail if blueprint is using these resources.
actionset restore-backup-rslmb-2hdsz created
kanctl --namespace kanister create actionset --action delete --from backup-rslmb --namespacetargets kanister
Warning: Neither --profile nor --repository-server flag is provided.
Action might fail if blueprint is using these resources.
actionset delete-backup-rslmb-cq6bw created
Thanks for submitting this pull request :tada:. The team will review it soon and get back to you.
If you haven't already, please take a moment to review our project contributing guideline and Code of Conduct document.
This PR is marked as stale due to inactivity. Add a new comment to reactivate it.
@r4rajat
This PR is marked as stale due to inactivity. Add a new comment to reactivate it.