This is an example Kubernetes Operator implemented with Metacontroller to run a MongoDB migration.
Make these commands available.
docker
kubectl
cd operation
- Edit
spec.url
inmigration.yaml
. The content ofurl
will be executed in MongoDB.
cd db
make apply-service
cd metacontroller
make install
cd custom
make apply-crd
make apply-controller
cd webhook
make image-build
make create-namespace
make apply-service
cd operation
make apply-migration
cd db
make exec-mongo
cd operation
make delete-migration
cd webhook
make delete-service
make delete-namespace
make image-rm
cd custom
make delete-controller
make delete-crd
cd metacontroller
make uninstall
make image-rm
cd db
make delete-service
make image-rm